redAccent constant Null safety

MaterialAccentColor const redAccent

The red accent swatch.

  color: Colors.redAccent[400],

See also:

  • red, the corresponding primary colors.
  • deepOrangeAccent and pinkAccent, similar colors.
  • Theme.of, which allows you to select colors from the current theme rather than hard-coding colors in your build methods.


static const MaterialAccentColor redAccent = MaterialAccentColor(
  <int, Color>{
    100: Color(0xFFFF8A80),
    200: Color(_redAccentValue),
    400: Color(0xFFFF1744),
    700: Color(0xFFD50000),