Quando aparece erro ele me aparece 2 alerts de erro um seguido do outro primeiro do HttpException e depois o do TimeOut
Future<Transaction> _send(Transaction transactionCreated, String password,
BuildContext context) async {
final Transaction transaction =
await _webClient.save(transactionCreated, password).catchError((e) {
_showFailureMessage(context, message: e.message);
}, test: (e) => e is HttpException).catchError((e) {
_showFailureMessage(context, message: 'timeout submitting the transaction');
}, test: (e) => e is TimeoutException).catchError((e) {
_showFailureMessage(context);
});
return transaction;
}