doStopTransaction function
Future<bool>
doStopTransaction(- BuildContext context
)
Implementation
Future<bool> doStopTransaction(
BuildContext context,
) async {
bool success = false;
final Map<dynamic, dynamic>? response =
await platformRepository.doStopTransaction(context);
if (response != null && response.length > 2) return success;
try {
if (response?.keys.first) {
success = true;
Navigator.pop(context);
} else {
showSnackbar(
context,
message: 'No se pudo cancelar la transacción',
);
}
} catch (exception) {
debugPrint(exception.toString());
}
return success;
}