asList property Null safety

List<Color> asList

Returns the shade50 .. shade900 formed List<Color> from the MaterialColor provided as this.

Implementation

List<Color> get asList => [
      shade50,
      shade100,
      shade200,
      shade300,
      shade400,
      shade500,
      shade600,
      shade700,
      shade800,
      shade900,
    ];