delete method

Future<void> delete()

Deletes the file at this FileStorageReference.

Implementation

Future<void> delete() async {
  assert(id > 0);
  final String url = "$fileEndpointUri/$id";

  await service
      ._delete(url)
      .then((response) => service._handleResponse(response));
}