disconnect method
*disconnect
Disconnect the printer
Implementation
Future<int?> disconnect() async {
int? _disconnect =
((await platform?.invokeMethod('stopPrinter') ?? false) == false
? -1
: 9999);
if (_disconnect < 0) {
throw ElginException(_disconnect);
}
return _disconnect;
}