copyWithOrderStateTransitionError method

OrderStateTransitionError copyWithOrderStateTransitionError({
  1. ErrorCode? errorCode,
  2. String? fromState,
  3. String? message,
  4. String? toState,
  5. String? transitionError,
})

Implementation

OrderStateTransitionError copyWithOrderStateTransitionError({
  ErrorCode? errorCode,
  String? fromState,
  String? message,
  String? toState,
  String? transitionError,
}) {
  return copyWith(
    errorCode: errorCode,
    fromState: fromState,
    message: message,
    toState: toState,
    transitionError: transitionError,
  );
}