changed_args.dart 329 B

123456789101112
  1. class CollectionChangedArgs<T> {
  2. late final List<T> _removedItems;
  3. late final List<T> _addedItems;
  4. List<T> get removedItems => _removedItems;
  5. List<T> get addedItems => _addedItems;
  6. CollectionChangedArgs(List<T>? removed, List<T>? added) {
  7. _removedItems = removed ?? <T>[];
  8. _addedItems = added ?? <T>[];
  9. }
  10. }