isReady method
Implementation
Future<bool> isReady() async {
if (_channel == null) {
return false;
}
try {
// usually connection errors are thrown here
await _channel!.ready;
} catch (e) {
Logger.log.e("Error on ready check: $e");
return false;
}
return _channel!.closeCode == null;
}