whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult unknown()?,
- TResult dimension(
- double value
- TResult color(
- Color value
- TResult radius(
- double smoothing,
- BorderRadius radius
- TResult spacing(
- EdgeInsets value
- TResult fontStyle(
- TextStyle textStyle
- TResult icon()?,
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult Function()? unknown,
TResult Function(double value)? dimension,
TResult Function(@ColorTokenValueConverter() Color value)? color,
TResult Function(double smoothing, BorderRadius radius)? radius,
TResult Function(EdgeInsets value)? spacing,
TResult Function(TextStyle textStyle)? fontStyle,
TResult Function(List<IconPath> paths, Size size, Offset offset)? icon,
}) =>
throw _privateConstructorUsedError;