discard method

dynamic discard(
  1. int id
)

Implementation

discard(int id) {
  try {
    return dio.delete('/mail/$id');
  } on DioException catch (e) {
    _handleError(e);
    rethrow;
  }
}