delete method

  1. @override
Future<void> delete(
  1. Model item
)
override

Deletes an entry in the repository.

Implementation

@override
Future<void> delete(Model item) async {
  _checkInitializationStatus();

  _models.removeWhere((element) => element.id == item.id);
  _writeRaw();
}