maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult noHair(
    1. AvataaarTypeHairNoHair value
    )?,
  2. TResult eyepatch(
    1. AvataaarTypeHairEyepatch value
    )?,
  3. TResult hat(
    1. AvataaarTypeHairHat value
    )?,
  4. TResult hijab(
    1. AvataaarTypeHairHijab value
    )?,
  5. TResult turban(
    1. AvataaarTypeHairTurban value
    )?,
  6. TResult winterHat1(
    1. AvataaarTypeHairWinterHat1 value
    )?,
  7. TResult winterHat2(
    1. AvataaarTypeHairWinterHat2 value
    )?,
  8. TResult winterHat3(
    1. AvataaarTypeHairWinterHat3 value
    )?,
  9. TResult winterHat4(
    1. AvataaarTypeHairWinterHat4 value
    )?,
  10. TResult longHairBigHair(
    1. AvataaarTypeHairLongHairBigHair value
    )?,
  11. TResult longHairBob(
    1. AvataaarTypeHairLongHarBob value
    )?,
  12. TResult longHairBun(
    1. AvataaarTypeHairLongHairBun value
    )?,
  13. TResult longHairCurly(
    1. AvataaarTypeHairLongHairCurly value
    )?,
  14. TResult longHairCurvy(
    1. AvataaarTypeHairLongHairCurvy value
    )?,
  15. TResult longHairDreads(
    1. AvataaarTypeHairLongHairDreads value
    )?,
  16. TResult longHairFrida(
    1. AvataaarTypeHairLongHairFrida value
    )?,
  17. TResult longHairFro(
    1. AvataaarTypeHairLongHairFro value
    )?,
  18. TResult longHairFroBand(
    1. AvataaarTypeHairLongHairFroBand value
    )?,
  19. TResult longHairNotTooLong(
    1. AvataaarTypeHairLongHairNotTooLong value
    )?,
  20. TResult longHairShavedSides(
    1. AvataaarTypeHairLongHairShavedSides value
    )?,
  21. TResult longHairMiaWallace(
    1. AvataaarTypeHairLongHairMiaWallace value
    )?,
  22. TResult longHairStraight(
    1. AvataaarTypeHairLongHairStraight value
    )?,
  23. TResult longHairStraight2(
    1. AvataaarTypeHairLongHairStraight2 value
    )?,
  24. TResult longHairStraightStrand(
    1. AvataaarTypeHairLongHairStraightStrand value
    )?,
  25. TResult shortHairDreads01(
    1. AvataaarTypeHairShortHairDreads01 value
    )?,
  26. TResult shortHairDreads02(
    1. AvataaarTypeHairShortHairDreads02 value
    )?,
  27. TResult shortHairFrizzle(
    1. AvataaarTypeHairShortHairFrizzle value
    )?,
  28. TResult shortHairShaggyMullet(
    1. AvataaarTypeHairShortHairShaggyMullet value
    )?,
  29. TResult shortHairShortCurly(
    1. AvataaarTypeHairShortHairShortCurly value
    )?,
  30. TResult shortHairShortFlat(
    1. AvataaarTypeHairShortHairShortFlat value
    )?,
  31. TResult shortHairShortRound(
    1. AvataaarTypeHairShortHairShortRound value
    )?,
  32. TResult shortHairShortWaved(
    1. AvataaarTypeHairShortHairShortWaved value
    )?,
  33. TResult shortHairSides(
    1. AvataaarTypeHairShortHairSides value
    )?,
  34. TResult shortHairTheCaesar(
    1. AvataaarTypeHairShortHairTheCaesar value
    )?,
  35. TResult shortHairTheCaesarSidePart(
    1. AvataaarTypeHairShortHairTheCaesarSidePart value
    )?,
  36. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(AvataaarTypeHairNoHair value)? noHair,
  TResult Function(AvataaarTypeHairEyepatch value)? eyepatch,
  TResult Function(AvataaarTypeHairHat value)? hat,
  TResult Function(AvataaarTypeHairHijab value)? hijab,
  TResult Function(AvataaarTypeHairTurban value)? turban,
  TResult Function(AvataaarTypeHairWinterHat1 value)? winterHat1,
  TResult Function(AvataaarTypeHairWinterHat2 value)? winterHat2,
  TResult Function(AvataaarTypeHairWinterHat3 value)? winterHat3,
  TResult Function(AvataaarTypeHairWinterHat4 value)? winterHat4,
  TResult Function(AvataaarTypeHairLongHairBigHair value)? longHairBigHair,
  TResult Function(AvataaarTypeHairLongHarBob value)? longHairBob,
  TResult Function(AvataaarTypeHairLongHairBun value)? longHairBun,
  TResult Function(AvataaarTypeHairLongHairCurly value)? longHairCurly,
  TResult Function(AvataaarTypeHairLongHairCurvy value)? longHairCurvy,
  TResult Function(AvataaarTypeHairLongHairDreads value)? longHairDreads,
  TResult Function(AvataaarTypeHairLongHairFrida value)? longHairFrida,
  TResult Function(AvataaarTypeHairLongHairFro value)? longHairFro,
  TResult Function(AvataaarTypeHairLongHairFroBand value)? longHairFroBand,
  TResult Function(AvataaarTypeHairLongHairNotTooLong value)?
      longHairNotTooLong,
  TResult Function(AvataaarTypeHairLongHairShavedSides value)?
      longHairShavedSides,
  TResult Function(AvataaarTypeHairLongHairMiaWallace value)?
      longHairMiaWallace,
  TResult Function(AvataaarTypeHairLongHairStraight value)? longHairStraight,
  TResult Function(AvataaarTypeHairLongHairStraight2 value)?
      longHairStraight2,
  TResult Function(AvataaarTypeHairLongHairStraightStrand value)?
      longHairStraightStrand,
  TResult Function(AvataaarTypeHairShortHairDreads01 value)?
      shortHairDreads01,
  TResult Function(AvataaarTypeHairShortHairDreads02 value)?
      shortHairDreads02,
  TResult Function(AvataaarTypeHairShortHairFrizzle value)? shortHairFrizzle,
  TResult Function(AvataaarTypeHairShortHairShaggyMullet value)?
      shortHairShaggyMullet,
  TResult Function(AvataaarTypeHairShortHairShortCurly value)?
      shortHairShortCurly,
  TResult Function(AvataaarTypeHairShortHairShortFlat value)?
      shortHairShortFlat,
  TResult Function(AvataaarTypeHairShortHairShortRound value)?
      shortHairShortRound,
  TResult Function(AvataaarTypeHairShortHairShortWaved value)?
      shortHairShortWaved,
  TResult Function(AvataaarTypeHairShortHairSides value)? shortHairSides,
  TResult Function(AvataaarTypeHairShortHairTheCaesar value)?
      shortHairTheCaesar,
  TResult Function(AvataaarTypeHairShortHairTheCaesarSidePart value)?
      shortHairTheCaesarSidePart,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;