update method

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

Updates an entry in the repository.

Implementation

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

  _models[_models.indexOf(
      _models.firstWhere((element) => element.id == item.id))] = item;
  _writeRaw();
}