copyWith method
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,
);
}