write method
Implementation
@override
Future<void> write({required Uint8List data}) async {
final characteristic = _getCharacteristic();
await backend.writeCharacteristic(peripheral, characteristic!,
value: data, type: GATTCharacteristicWriteType.withResponse);
}