Skip to content

Commit cae241a

Browse files
committed
Rename constructor argument from useColor to colors
This brings the class in line with the PrettyPrinter.
1 parent 2f1fb8d commit cae241a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/printers/simple_printer.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ class SimplePrinter extends LogPrinter {
2727
Level.wtf: AnsiColor.fg(199),
2828
};
2929

30-
bool printTime;
31-
bool useColor;
30+
final bool printTime;
31+
final bool colors;
3232

33-
SimplePrinter({this.printTime = false, this.useColor = true});
33+
SimplePrinter({this.printTime = false, this.colors = true});
3434

3535
@override
3636
List<String> log(LogEvent event) {
@@ -44,7 +44,7 @@ class SimplePrinter extends LogPrinter {
4444
var prefix = levelPrefixes[level];
4545
var color = levelColors[level];
4646

47-
return useColor ? color(prefix) : prefix;
47+
return colors ? color(prefix) : prefix;
4848
}
4949

5050
String _stringifyMessage(dynamic message) {

0 commit comments

Comments
 (0)