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 {
  _box.put(item.id, item.toJson());
}