asMaterialColor property Null safety

MaterialColor asMaterialColor

Returns this color as a MaterialColor via materialPrimaryFrom using SwatchMode.shade and a factor of 200.

Implementation

MaterialColor get asMaterialColor
    // (Color color, {SwatchMode mode = SwatchMode.shade, double? factor, })
    =>
    // materialPrimaryFrom(this, mode, factor);
    materialPrimaryFrom(this, SwatchMode.shade, 200);