disconnect method

Future<int?> disconnect()

*disconnect

Disconnect the printer

Implementation

Future<int?> disconnect() async {
  int? _disconnect = await platform?.invokeMethod('stopPrinter') ?? 9999;
  if (_disconnect < 0) {
    throw ElginException(_disconnect);
  }

  return _disconnect;
}