when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult unknown(),
  2. required TResult dimension(
    1. double value
    ),
  3. required TResult color(
    1. Color value
    ),
  4. required TResult radius(
    1. double smoothing,
    2. BorderRadius radius
    ),
  5. required TResult spacing(
    1. EdgeInsets value
    ),
  6. required TResult fontStyle(
    1. TextStyle textStyle
    ),
  7. required TResult icon(
    1. List<IconPath> paths,
    2. Size size,
    3. Offset offset
    ),
})
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;