removeApplication method
Future<Response?>
removeApplication({
- required String applicationId,
- GeneralCallback<
Response> ? callback,
Implementation
Future<Response<dynamic>?> removeApplication({
required String applicationId,
GeneralCallback<Response<dynamic>>? callback,
}) async {
try {
final Response<dynamic> response = await dio.delete(
'/application/$applicationId',
);
if (callback != null) {
callback.onSuccess(response);
}
return response;
} on DioException catch (dioException) {
if (callback == null) {
rethrow;
} else {
handleCrudError(dioException, callback);
}
}
return null;
}