copyWith abstract method

T copyWith({
  1. List<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({
  List<Message>? messages,
  Set<LoadingState> loadingStates,
});