copyWith method
Creates a copy of this status with optionally overridden values.
Implementation
@override
StreamStatus<TState> copyWith({
TState? state,
TState? oldState,
EventBase? event,
}) {
return UpdatingStatus(
state ?? this.state,
oldState ?? this.oldState,
event ?? this.event,
);
}