syncChips method

Future<ListDiffs<T>> syncChips(
  1. Iterable<T> newChips, {
  2. bool notify = true,
  3. bool? resetQuery,
  4. required ChipChangeOperation source,
})

Implementation

Future<ListDiffs<T>> syncChips(Iterable<T> newChips,
    {bool notify = true,
    bool? resetQuery,
    required ChipChangeOperation source}) async {
  final changed = await _applyDiff((_chips) {
    _chips.clear();
    _chips.addAll(newChips);
  }, resetQuery: resetQuery, source: source, notify: notify);

  return changed;
}