addChip method

Future<ListDiffs<T>> addChip(
  1. T data, {
  2. required bool resetQuery,
})

Implementation

Future<ListDiffs<T>> addChip(T data, {required bool resetQuery}) async {
  final result = await _applyDiff((_chips) {
    _chips.add(data);
  }, source: ChipChangeOperation.addChip, resetQuery: resetQuery);

  return result;
}