sendCommand method
Implementation
Future<Uint8List> sendCommand(Application application, List<int> input,
{List<int>? verify}) async {
final response =
await (await sendCommands(application, [input], verify: verify)).first;
if (response is ErrorResponse) {
throw response.exception;
} else if (response is SuccessfulResponse) {
return Uint8List.fromList(response.response);
} else {
throw Exception('Response type not supported ${response.runtimeType}');
}
}