whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult blazerShirt(
    1. Color color
    )?,
  2. TResult blazerSweater(
    1. Color color
    )?,
  3. TResult collarSweater(
    1. Color color
    )?,
  4. TResult graphicShirt(
    1. Color color
    )?,
  5. TResult hoodie(
    1. Color color
    )?,
  6. TResult overall(
    1. Color color
    )?,
  7. TResult shirtCrewNeck(
    1. Color color
    )?,
  8. TResult shirtScoopNeck(
    1. Color color
    )?,
  9. TResult shirtVNeck(
    1. Color color
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function(@ColorSerialiser() Color color)? blazerShirt,
  TResult Function(@ColorSerialiser() Color color)? blazerSweater,
  TResult Function(@ColorSerialiser() Color color)? collarSweater,
  TResult Function(@ColorSerialiser() Color color)? graphicShirt,
  TResult Function(@ColorSerialiser() Color color)? hoodie,
  TResult Function(@ColorSerialiser() Color color)? overall,
  TResult Function(@ColorSerialiser() Color color)? shirtCrewNeck,
  TResult Function(@ColorSerialiser() Color color)? shirtScoopNeck,
  TResult Function(@ColorSerialiser() Color color)? shirtVNeck,
}) =>
    throw _privateConstructorUsedError;