checkConnection static method

Future<bool> checkConnection()

Implementation

static Future<bool> checkConnection() async {
  final bool? check =
      await (_channel.invokeMethod<dynamic>(PrinterMethod.checkConnection)
          as FutureOr<bool?>);
  return check ?? false;
}