readStatusUsb method

  1. @override
Future<Uint8List?> readStatusUsb(
  1. Uint8List command
)
override

Implementation

@override
Future<Uint8List?> readStatusUsb(Uint8List command) async {
  try {
    Uint8List commandBytes = Uint8List.fromList(command);
    final Uint8List? result = await methodChannel
        .invokeMethod('readStatusUsb', {'command': commandBytes});
    if (result != null) {
      //log('Estado de la impresora recibido: $result');
    }
    return result;
  } catch (e) {
    //log("Error al obtener el estado de la impresora: $e");
    return null;
  }
}