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 {
10
10
final int ? bg;
11
11
final bool color;
12
12
13
- AnsiColor .none ()
13
+ const AnsiColor .none ()
14
14
: fg = null ,
15
15
bg = null ,
16
16
color = false ;
17
17
18
- AnsiColor .fg (this .fg)
18
+ const AnsiColor .fg (this .fg)
19
19
: bg = null ,
20
20
color = true ;
21
21
22
- AnsiColor .bg (this .bg)
22
+ const AnsiColor .bg (this .bg)
23
23
: fg = null ,
24
24
color = true ;
25
25
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ class PrettyPrinter extends LogPrinter {
27
27
28
28
static final levelColors = {
29
29
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 ),
35
35
};
36
36
37
37
static final levelEmojis = {
@@ -343,7 +343,7 @@ class PrettyPrinter extends LogPrinter {
343
343
if (colors) {
344
344
return levelColors[level]! ;
345
345
} else {
346
- return AnsiColor .none ();
346
+ return const AnsiColor .none ();
347
347
}
348
348
}
349
349
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ class SimplePrinter extends LogPrinter {
20
20
21
21
static final levelColors = {
22
22
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 ),
28
28
};
29
29
30
30
final bool printTime;
You can’t perform that action at this time.
0 commit comments