copyWith abstract method

T copyWith({
  1. Set<Message>? messages,
  2. Set<LoadingState>? loadingStates,
})

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

Implementation

T copyWith({
  Set<Message>? messages,
  Set<LoadingState>? loadingStates,
});