id property

String get id

Implementation

String get id {
  String deviceId = const Uuid().v1();
  if (preferences.containsKey(lcpDeviceIdPref)) {
    var prefValue = preferences.getString(lcpDeviceIdPref);
    if (prefValue != null) {
      deviceId = prefValue;
    }
  }
  preferences.setString(lcpDeviceIdPref, deviceId);
  return deviceId;
}