update method

  1. @override
Future<AlbumEntryModel> update(
  1. AlbumEntryModel value
)
override

Implementation

@override
Future<AlbumEntryModel> update(AlbumEntryModel value) {
  int index = _index(value.documentID);
  if (index >= 0) {
    items.replaceRange(index, index + 1, [value]);
    trigger(items);
  }
  return Future.value(value);
}