updateDeviceName method

void updateDeviceName(
  1. String name
)

Updates the device name.

Implementation

void updateDeviceName(String name) {
  emit(state.copyWith(deviceName: name));
}