when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult invalidShippingField(
    1. InvalidShippingField field,
    2. String? message
    ),
  2. required TResult unserviceableShippingAddress(
    1. String? message
    ),
  3. required TResult invalidCouponCode(
    1. String? message
    ),
  4. required TResult expiredCouponCode(
    1. 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;