when<TResult extends Object?> method
Null safety
- {required TResult linear( ),
- required TResult radial( ),
- required TResult sweep( )}
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
Alignment begin,
Alignment end,
List<Color> colors,
List<double>? stops,
TileMode tileMode,
GradientTransform? transform)
linear,
required TResult Function(
Alignment center,
double radius,
List<Color> colors,
List<double>? stops,
TileMode tileMode,
Alignment? focal,
double focalRadius,
GradientTransform? transform)
radial,
required TResult Function(
Alignment center,
double startAngle,
double endAngle,
List<Color> colors,
List<double>? stops,
TileMode tileMode,
GradientTransform? transform)
sweep,
}) =>
throw _privateConstructorUsedError;