BleDevice constructor

BleDevice({
  1. required String deviceId,
  2. required String? name,
  3. int? rssi,
  4. bool? paired,
  5. List<String> services = const [],
  6. bool? isSystemDevice,
  7. List<ManufacturerData> manufacturerDataList = const [],
})

Implementation

BleDevice({
  required this.deviceId,
  required String? name,
  this.rssi,
  this.paired,
  this.services = const [],
  this.isSystemDevice,
  this.manufacturerDataList = const [],
}) {
  rawName = name;
  this.name = name?.replaceAll(RegExp(r'[^ -~]'), '').trim();
}