whenOrNull<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
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;