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