when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult noHair(
    1. Color color
    ),
  2. required TResult eyepatch(
    1. Color color
    ),
  3. required TResult hat(
    1. Color color
    ),
  4. required TResult hijab(
    1. Color color
    ),
  5. required TResult turban(
    1. Color color
    ),
  6. required TResult winterHat1(
    1. Color color
    ),
  7. required TResult winterHat2(
    1. Color color
    ),
  8. required TResult winterHat3(
    1. Color color
    ),
  9. required TResult winterHat4(
    1. Color color
    ),
  10. required TResult longHairBigHair(
    1. Color color
    ),
  11. required TResult longHairBob(
    1. Color color
    ),
  12. required TResult longHairBun(
    1. Color color
    ),
  13. required TResult longHairCurly(
    1. Color color
    ),
  14. required TResult longHairCurvy(
    1. Color color
    ),
  15. required TResult longHairDreads(
    1. Color color
    ),
  16. required TResult longHairFrida(
    1. Color color
    ),
  17. required TResult longHairFro(
    1. Color color
    ),
  18. required TResult longHairFroBand(
    1. Color color
    ),
  19. required TResult longHairNotTooLong(
    1. Color color
    ),
  20. required TResult longHairShavedSides(
    1. Color color
    ),
  21. required TResult longHairMiaWallace(
    1. Color color
    ),
  22. required TResult longHairStraight(
    1. Color color
    ),
  23. required TResult longHairStraight2(
    1. Color color
    ),
  24. required TResult longHairStraightStrand(
    1. Color color
    ),
  25. required TResult shortHairDreads01(
    1. Color color
    ),
  26. required TResult shortHairDreads02(
    1. Color color
    ),
  27. required TResult shortHairFrizzle(
    1. Color color
    ),
  28. required TResult shortHairShaggyMullet(
    1. Color color
    ),
  29. required TResult shortHairShortCurly(
    1. Color color
    ),
  30. required TResult shortHairShortFlat(
    1. Color color
    ),
  31. required TResult shortHairShortRound(
    1. Color color
    ),
  32. required TResult shortHairShortWaved(
    1. Color color
    ),
  33. required TResult shortHairSides(
    1. Color color
    ),
  34. required TResult shortHairTheCaesar(
    1. Color color
    ),
  35. required TResult shortHairTheCaesarSidePart(
    1. Color color
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(@ColorSerialiser() Color color) noHair,
  required TResult Function(@ColorSerialiser() Color color) eyepatch,
  required TResult Function(@ColorSerialiser() Color color) hat,
  required TResult Function(@ColorSerialiser() Color color) hijab,
  required TResult Function(@ColorSerialiser() Color color) turban,
  required TResult Function(@ColorSerialiser() Color color) winterHat1,
  required TResult Function(@ColorSerialiser() Color color) winterHat2,
  required TResult Function(@ColorSerialiser() Color color) winterHat3,
  required TResult Function(@ColorSerialiser() Color color) winterHat4,
  required TResult Function(@ColorSerialiser() Color color) longHairBigHair,
  required TResult Function(@ColorSerialiser() Color color) longHairBob,
  required TResult Function(@ColorSerialiser() Color color) longHairBun,
  required TResult Function(@ColorSerialiser() Color color) longHairCurly,
  required TResult Function(@ColorSerialiser() Color color) longHairCurvy,
  required TResult Function(@ColorSerialiser() Color color) longHairDreads,
  required TResult Function(@ColorSerialiser() Color color) longHairFrida,
  required TResult Function(@ColorSerialiser() Color color) longHairFro,
  required TResult Function(@ColorSerialiser() Color color) longHairFroBand,
  required TResult Function(@ColorSerialiser() Color color)
      longHairNotTooLong,
  required TResult Function(@ColorSerialiser() Color color)
      longHairShavedSides,
  required TResult Function(@ColorSerialiser() Color color)
      longHairMiaWallace,
  required TResult Function(@ColorSerialiser() Color color) longHairStraight,
  required TResult Function(@ColorSerialiser() Color color) longHairStraight2,
  required TResult Function(@ColorSerialiser() Color color)
      longHairStraightStrand,
  required TResult Function(@ColorSerialiser() Color color) shortHairDreads01,
  required TResult Function(@ColorSerialiser() Color color) shortHairDreads02,
  required TResult Function(@ColorSerialiser() Color color) shortHairFrizzle,
  required TResult Function(@ColorSerialiser() Color color)
      shortHairShaggyMullet,
  required TResult Function(@ColorSerialiser() Color color)
      shortHairShortCurly,
  required TResult Function(@ColorSerialiser() Color color)
      shortHairShortFlat,
  required TResult Function(@ColorSerialiser() Color color)
      shortHairShortRound,
  required TResult Function(@ColorSerialiser() Color color)
      shortHairShortWaved,
  required TResult Function(@ColorSerialiser() Color color) shortHairSides,
  required TResult Function(@ColorSerialiser() Color color)
      shortHairTheCaesar,
  required TResult Function(@ColorSerialiser() Color color)
      shortHairTheCaesarSidePart,
}) =>
    throw _privateConstructorUsedError;