copyWith method

UpdateConnectionState copyWith({
  1. ConnectionState? state,
})

Implementation

UpdateConnectionState copyWith({
  ConnectionState? state,
}) =>
    UpdateConnectionState(
      state: state ?? this.state,
    );