ilikerobots / polyicon

Flutter icon set generator
http://fluttericon.com
MIT License
421 stars 49 forks source link

AVOID repeating const keyword in a const context #19

Closed furaiev closed 4 years ago

furaiev commented 4 years ago

First of all, thank you for great service!

Could you please adjust output ${name}_icons.dart file not to use repeating const?

linter rule: https://dart-lang.github.io/linter/lints/unnecessary_const.html

e.g

// current
static const IconData settings = const IconData(0xe801, fontFamily: _kFontFam);

// required
static const IconData settings = IconData(0xe801, fontFamily: _kFontFam);