when<TResult extends Object?> method

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

Implementation

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