remove method
Delete the document corresponding to the item
.
If the reference of the item
(DBModel.ref) is null
nothing will happen.
Implementation
Future<void> remove({required T item}) async {
if (await _checkConnectivity()) {
await item.ref?.delete();
} else {
item.ref?.delete();
}
}