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