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