map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult regular(
- PaymentFormTypeRegular value
- required TResult starSubscription(),
- required TResult stars(
- PaymentFormTypeStars value
Implementation
TResult map<TResult extends Object?>({
required TResult Function(PaymentFormTypeRegular value) regular,
required TResult Function(PaymentFormTypeStarSubscription value)
starSubscription,
required TResult Function(PaymentFormTypeStars value) stars,
}) {
switch (getConstructor()) {
case PaymentFormTypeRegular.constructor:
return regular.call(this as PaymentFormTypeRegular);
case PaymentFormTypeStarSubscription.constructor:
return starSubscription.call(this as PaymentFormTypeStarSubscription);
case PaymentFormTypeStars.constructor:
return stars.call(this as PaymentFormTypeStars);
}
throw StateError('not handled type Generator');
}