LCOV - code coverage report
Current view: top level - src/models - console_colors.dart Coverage Total Hit
Test: filtered_lcov.info Lines: 100.0 % 10 10
Test Date: 2025-02-11 12:45:26 Functions: - 0 0

            Line data    Source code
       1              : // This file contains internal implementation details for console colors,
       2              : // so public member documentation is not required.
       3              : // ignore_for_file: public_member_api_docs
       4              : 
       5              : /// ANSI escape codes
       6              : enum DefaultConsoleColor {
       7              :   /// Reset
       8              :   reset('\x1B[0m'),
       9              : 
      10              :   /// 256 colors
      11              :   red0('\x1B[38;5;200m'),
      12              :   red1('\x1B[38;5;196m'),
      13              :   green0('\x1B[38;5;40m'),
      14              :   green1('\x1B[38;5;43m'),
      15              :   green2('\x1B[38;5;45m'),
      16              :   yellow0('\x1B[38;5;184m'),
      17              :   blue0('\x1B[38;5;137m'),
      18              :   blue1('\x1B[38;5;145m');
      19              : 
      20              :   const DefaultConsoleColor(this.value);
      21              :   final String value;
      22              : }
      23              : 
      24              : /// Console logger colors
      25              : class ConsoleColors {
      26              :   /// Default console colors
      27            9 :   const ConsoleColors();
      28            8 :   String get finest => DefaultConsoleColor.green0.value;
      29            6 :   String get finer => DefaultConsoleColor.green1.value;
      30            6 :   String get fine => DefaultConsoleColor.green2.value;
      31            6 :   String get config => DefaultConsoleColor.blue0.value;
      32            8 :   String get info => DefaultConsoleColor.blue1.value;
      33            6 :   String get warning => DefaultConsoleColor.yellow0.value;
      34            6 :   String get severe => DefaultConsoleColor.red0.value;
      35            6 :   String get shout => DefaultConsoleColor.red1.value;
      36            8 :   String get reset => DefaultConsoleColor.reset.value;
      37              : }
        

Generated by: LCOV version 2.3-1