ready method

Future<bool> ready()

Promise that resolves the first time we are connected and loaded

Implementation

Future<bool> ready() async {
  if (channel != null) {
    await channel!.ready;
    return true;
  }
  return false;
}