whenOrNull<TResult extends Object?> method
Null safety
- {TResult? linear( )?,
- TResult? radial( )?,
- TResult? sweep( )?}
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;