Init
This commit is contained in:
25
lib/CustomBluetoothService.dart
Normal file
25
lib/CustomBluetoothService.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
import 'package:bluetooth_classic/bluetooth_classic.dart';
|
||||
import 'package:bluetooth_classic/models/device.dart';
|
||||
|
||||
class Custombluetoothservice extends BluetoothClassic {
|
||||
// @override
|
||||
// Stream<Uint8List> onDeviceDataReceived() {
|
||||
// return _onDeviceDataReceived ??=
|
||||
// super.onDeviceDataReceived().asBroadcastStream();
|
||||
// }
|
||||
|
||||
// Stream<Uint8List>? _onDeviceDataReceived;
|
||||
|
||||
@override
|
||||
Stream<Device> onDeviceDiscovered() =>
|
||||
_onDeviceDiscovered ??= super.onDeviceDiscovered().asBroadcastStream();
|
||||
Stream<Device>? _onDeviceDiscovered;
|
||||
|
||||
@override
|
||||
Stream<int> onDeviceStatusChanged() =>
|
||||
_onDeviceStatusChanged ??=
|
||||
super.onDeviceStatusChanged().asBroadcastStream();
|
||||
Stream<int>? _onDeviceStatusChanged;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user