update method
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();
}