getReturn method
Função para consulta das transações
Implementation
Future<Sale?> getReturn(getSale) async {
try {
Response response =
await dio.get("${environment!.apiQueryUrl}/1/sales/$getSale");
return Sale.fromJson(response.data);
} on DioError catch (e) {
_getErrorDio(e);
} on CieloException catch (e) {
_getErrorCieloException(e);
}
return null;
}