statusEjetor method

Future<int> statusEjetor()

Retorna o status do ejetor de papel, caso o hardware possua o recurso.

Retorna o código de status da operação. Lança ElginException em caso de erro.

Implementation

Future<int> statusEjetor() async {
  final status = await platform?.invokeMethod('statusEjector') ?? 9999;
  if (status < 0) throw ElginException(status);
  return status;
}