BluetoothGattService constructor
const
BluetoothGattService({})
创建 GATT 服务。
参数:
uuid:服务 UUID,无默认值。isPrimary:是否主服务,默认true。characteristics:特征列表,默认const <BluetoothGattCharacteristic>[]。includedServices:包含的服务 UUID,默认const <String>[]。平台支持有限,通常可为空。raw:原生完整字段,默认const <String, dynamic>{}。
Implementation
const BluetoothGattService({
required this.uuid,
this.isPrimary = true,
this.characteristics = const <BluetoothGattCharacteristic>[],
this.includedServices = const <String>[],
this.raw = const <String, dynamic>{},
});