update method

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

Implementation

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