full_ hex_ values_ for_ flutter_ colors
Prefer an 8-digit hexadecimal integer(0xFFFFFFFF) to instantiate Color.
This rule is available as of Dart 2.2.0.
Rule sets: flutter
This rule has a quick fix available.
PREFER an 8-digit hexadecimal integer(0xFFFFFFFF) to instantiate Color. Colors have four 8-bit channels, which adds up to 32 bits, so Colors are described using a 32 bit integer.
To enable the
use_full_hex_values_for_flutter_colors under linter > rules in your
linter: rules: - use_full_hex_values_for_flutter_colors