copyUsing method

ConnectionStateUpdate copyUsing(
  1. void mutator(
    1. ConnectionStateUpdate$Change change
    )
)

Implementation

ConnectionStateUpdate copyUsing(
    void Function(ConnectionStateUpdate$Change change) mutator) {
  final change = ConnectionStateUpdate$Change._(
    this.deviceId,
    this.connectionState,
    this.failure,
  );
  mutator(change);
  return ConnectionStateUpdate(
    deviceId: change.deviceId,
    connectionState: change.connectionState,
    failure: change.failure,
  );
}