asGradient property Null safety

LinearGradient asGradient
override

Resolve these Steps to its smooth Gradient counterpart by colors and stops duplication, considering softness.

Implementation

@override
LinearGradient get asGradient => LinearGradient(
    colors: steppedColors,
    stops: steppedStops,
    begin: begin,
    end: end,
    tileMode: tileMode,
    transform: transform);