asGradient property Null safety

SweepGradient asGradient
override

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

Implementation

@override
SweepGradient get asGradient => SweepGradient(
    colors: steppedColors,
    stops: steppedStops,
    center: center,
    startAngle: startAngle,
    endAngle: endAngle,
    tileMode: tileMode,
    transform: transform);