File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed
Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ class AnsiColor {
1010 final int ? bg;
1111 final bool color;
1212
13- AnsiColor .none ()
13+ const AnsiColor .none ()
1414 : fg = null ,
1515 bg = null ,
1616 color = false ;
1717
18- AnsiColor .fg (this .fg)
18+ const AnsiColor .fg (this .fg)
1919 : bg = null ,
2020 color = true ;
2121
22- AnsiColor .bg (this .bg)
22+ const AnsiColor .bg (this .bg)
2323 : fg = null ,
2424 color = true ;
2525
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ class PrettyPrinter extends LogPrinter {
2727
2828 static final levelColors = {
2929 Level .verbose: AnsiColor .fg (AnsiColor .grey (0.5 )),
30- Level .debug: AnsiColor .none (),
31- Level .info: AnsiColor .fg (12 ),
32- Level .warning: AnsiColor .fg (208 ),
33- Level .error: AnsiColor .fg (196 ),
34- Level .wtf: AnsiColor .fg (199 ),
30+ Level .debug: const AnsiColor .none (),
31+ Level .info: const AnsiColor .fg (12 ),
32+ Level .warning: const AnsiColor .fg (208 ),
33+ Level .error: const AnsiColor .fg (196 ),
34+ Level .wtf: const AnsiColor .fg (199 ),
3535 };
3636
3737 static final levelEmojis = {
@@ -343,7 +343,7 @@ class PrettyPrinter extends LogPrinter {
343343 if (colors) {
344344 return levelColors[level]! ;
345345 } else {
346- return AnsiColor .none ();
346+ return const AnsiColor .none ();
347347 }
348348 }
349349
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ class SimplePrinter extends LogPrinter {
2020
2121 static final levelColors = {
2222 Level .verbose: AnsiColor .fg (AnsiColor .grey (0.5 )),
23- Level .debug: AnsiColor .none (),
24- Level .info: AnsiColor .fg (12 ),
25- Level .warning: AnsiColor .fg (208 ),
26- Level .error: AnsiColor .fg (196 ),
27- Level .wtf: AnsiColor .fg (199 ),
23+ Level .debug: const AnsiColor .none (),
24+ Level .info: const AnsiColor .fg (12 ),
25+ Level .warning: const AnsiColor .fg (208 ),
26+ Level .error: const AnsiColor .fg (196 ),
27+ Level .wtf: const AnsiColor .fg (199 ),
2828 };
2929
3030 final bool printTime;
You can’t perform that action at this time.
0 commit comments