delete method

Future<void> delete()

Deletes the document referenced by ref.

Implementation

Future<void> delete() async {
  if (ref == null) {
    throw 'Document reference is null';
  }
  await ref!.delete();
  ref = null;
}