flutter-ble icon indicating copy to clipboard operation
flutter-ble copied to clipboard

Null safety issue

Open ChinmayaGit opened this issue 2 years ago • 0 comments

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

ChinmayaGit avatar Jun 08 '22 02:06 ChinmayaGit