flutter-ble
flutter-ble copied to clipboard
Null safety issue
I think is variable unable to initialise:-
late BluetoothDevice _connectedDevice;
ListView _buildView() { if (_connectedDevice != null) { return _buildConnectDeviceView(); } return _buildListViewOfDevices(); }
I have to do it like this:-
ListView _buildView() { return _buildListViewOfDevices(); }
Because if condition not working