deleteRequest method

  1. @protected
Future<void> deleteRequest(
  1. List<T> deleteList
)

The actual loading process is done from the API when it is deleted.

By overriding, it is possible to use plugins, etc. in addition to simply retrieving from the URL.

Implementation

@protected
Future<void> deleteRequest(List<T> deleteList) async {
  await Api.delete(
    getEndpoint,
    headers: getHeaders,
    body: toRequest(
      filterOnSave(
        toCollection(deleteList),
      ),
    ),
  );
}