createShader method
Falls back to LinearGradient
if type is not hard-coded.
Consider overriding _copyWith
by providing a custom GradientCopyWith
during construction as overrideCopyWith
.
Implementation
@override
Shader createShader(Rect rect, {TextDirection? textDirection}) =>
resolved.createShader(rect, textDirection: textDirection);