getPrinterStatus method

  1. @override
Future<Map<String, dynamic>> getPrinterStatus()
override

Implementation

@override
Future<Map<String, dynamic>> getPrinterStatus() async {
  final code = await methodChannel.invokeMethod<String>('getPrinterStatus');
  logger.d('code $code');
  Map<String, dynamic> printerStatus = <String, dynamic>{
    "code": code,
    "msg": PrinterStatus.getValue(code ?? '-1')
  };
  return printerStatus;
}