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 [],
  8. Map<String, Uint8List> serviceData = const {},
  9. int? timestamp,
  10. int? timestampMicroseconds,
  11. bool? connectable,
})

Implementation

BleDevice({
  required this.deviceId,
  required String? name,
  this.rssi,
  this.paired,
  List<String> services = const [],
  this.isSystemDevice,
  this.manufacturerDataList = const [],
  Map<String, Uint8List> serviceData = const {},
  this.timestamp,
  this.timestampMicroseconds,
  this.connectable,
})  : services = _validateServices(services),
      serviceData = _validateServiceData(serviceData),
      rawName = name,
      name = name?.replaceAll(RegExp(r'[^ -~]'), '').trim();