maybeWhen<TResult extends Object?> method
Null safety
- {TResult box(
- Color? color,
- DecorationImage? image,
- ShapeBorder? border,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- BlendMode? backgroundBlendMode,
- BoxShape shape
- TResult shape(
- Color? color,
- DecorationImage? image,
- Gradient? gradient,
- List<
BoxShadow> ? shadows, - ShapeBorder shape
- required TResult orElse(
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(
Color? color,
DecorationImage? image,
ShapeBorder? border,
BorderRadius? borderRadius,
List<BoxShadow>? boxShadow,
Gradient? gradient,
BlendMode? backgroundBlendMode,
BoxShape shape)?
box,
TResult Function(Color? color, DecorationImage? image, Gradient? gradient,
List<BoxShadow>? shadows, ShapeBorder shape)?
shape,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;