maybeWhen<TResult extends Object?> method

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

Implementation

@optionalTypeArgs
TResult maybeWhen<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,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;