toList method
Returns the shade50 .. shade900 formed List<Color> from the
MaterialColor provided as this.
If includePrimary is true, an additional entry located at the
beginning will have the value of this itself.
Default is true to differentiate versatility from asList.
Implementation
List<Color> toList({bool includePrimary = true}) => [
if (includePrimary) this,
shade50,
shade100,
shade200,
shade300,
shade400,
shade500,
shade600,
shade700,
shade800,
shade900,
];