import 'package:bluetooth_classic/bluetooth_classic.dart'; import 'package:bluetooth_classic/models/device.dart'; class Custombluetoothservice extends BluetoothClassic { // @override // Stream onDeviceDataReceived() { // return _onDeviceDataReceived ??= // super.onDeviceDataReceived().asBroadcastStream(); // } // Stream? _onDeviceDataReceived; @override Stream onDeviceDiscovered() => _onDeviceDiscovered ??= super.onDeviceDiscovered().asBroadcastStream(); Stream? _onDeviceDiscovered; @override Stream onDeviceStatusChanged() => _onDeviceStatusChanged ??= super.onDeviceStatusChanged().asBroadcastStream(); Stream? _onDeviceStatusChanged; }