copyWith method

  1. @override
BillingState copyWith({
  1. Set<LoadingState>? loadingStates,
  2. Set<Message>? messages,
  3. String? paymentLink,
})
override

The concrete class must implement this method to return a new instance of the state with the given parameters.

Implementation

@override
BillingState copyWith({
  Set<LoadingState>? loadingStates,
  Set<Message>? messages,
  String? paymentLink,
}) {
  return BillingState(
    loadingStates: loadingStates ?? super.loadingStates,
    messages: messages ?? super.messages,
    paymentLink: paymentLink ?? this.paymentLink,
  );
}