when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult invalidShippingField(
- InvalidShippingField field,
- String? message
- required TResult unserviceableShippingAddress(
- String? message
- required TResult invalidCouponCode(
- String? message
- required TResult expiredCouponCode(
- String? message
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(InvalidShippingField field, String? message)
invalidShippingField,
required TResult Function(String? message) unserviceableShippingAddress,
required TResult Function(String? message) invalidCouponCode,
required TResult Function(String? message) expiredCouponCode,
}) =>
throw _privateConstructorUsedError;