SourceHorizon / logger

Small, easy to use and extensible logger which prints beautiful logs.
https://pub.dev/packages/logger
MIT License
197 stars 33 forks source link

Error: The getter 'this' isn't defined for the class 'AnsiColor' #1

Closed EdwynZN closed 1 year ago

EdwynZN commented 1 year ago

https://github.com/SourceHorizon/logger/blob/bf2c13c30fdd9f8752748d938d23a6b81c5bcc31/lib/src/ansi_color.dart#L39

Even if the lint says you shouldn't wrap a single word with {}, this cannot be interpolated without it

Dart SDK version: 2.18.6

Bump to use at least Dart SDK 2.19 in pubspec

Bungeefan commented 1 year ago

Thanks for reporting this! I guess it would be better to use ${this} again instead of bumping the min. SDK.