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