asGradient property Null safety

RadialGradient asGradient
override

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

Implementation

@override
RadialGradient get asGradient => RadialGradient(
    colors: steppedColors,
    stops: steppedStops,
    center: center,
    radius: radius,
    focal: focal,
    focalRadius: focalRadius,
    tileMode: tileMode,
    transform: transform);