File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ final _logger = Logger('dartdoc');
16
16
/// A custom [Level] for tracking file writes and verification.
17
17
///
18
18
/// Has a value of `501` – one more than [Level.FINE] .
19
- final Level progressLevel = Level ('PROGRESS' , 501 );
19
+ const Level progressLevel = Level ('PROGRESS' , 501 );
20
20
21
21
/// A custom [Level] for errant print statements.
22
22
///
23
23
/// Has a value of `1201` – one more than [Level.SHOUT] .
24
- final Level printLevel = Level ('PRINT' , 1201 );
24
+ const Level printLevel = Level ('PRINT' , 1201 );
25
25
26
26
void logWarning (Object message) {
27
27
_logger.log (Level .WARNING , message);
@@ -82,7 +82,7 @@ void startLogging(LoggingContext config) {
82
82
var writingProgress = false ;
83
83
var ansi = Ansi (Ansi .terminalSupportsAnsi);
84
84
var spinnerIndex = 0 ;
85
- final spinner = ['-' , r'\' , '|' , '/' ];
85
+ const spinner = ['-' , r'\' , '|' , '/' ];
86
86
87
87
Logger .root.onRecord.listen ((record) {
88
88
if (record.level == progressLevel) {
You can’t perform that action at this time.
0 commit comments