isPrinterConnected method

  1. @override
Future<bool> isPrinterConnected()
override

Implementation

@override
Future<bool> isPrinterConnected() async {
  final bool result = await channel.invokeMethod("isPrinterConnected");
  if (!result) {
    status = PrinterStatus.disconnected;
    notifier(this);
  }
  return result;
}