ListAction<E> constructor

ListAction<E>(
  1. List<E> _list(),
  2. void first(
    1. E value
    ),
  3. void last(
    1. E value
    ),
  4. int length(),
  5. void add(
    1. E value
    ),
  6. void addAll(
    1. Iterable<E> iterable
    ),
  7. void sort([
    1. int compare(
      1. E,
      2. E
      )?
    ]),
  8. void shuffle([
    1. Random? random
    ]),
  9. int indexOf(
    1. E element, [
    2. int start
    ]),
  10. int indexWhere(
    1. bool test(
      1. E
      ), [
    2. int start
    ]),
  11. int lastIndexWhere(
    1. bool test(
      1. E
      ), [
    2. int? start
    ]),
  12. int lastIndexOf(
    1. E element, [
    2. int? start
    ]),
  13. void clear(),
  14. void insert(
    1. int index,
    2. E element
    ),
  15. void insertAll(
    1. int index,
    2. Iterable<E> iterable
    ),
  16. void setAll(
    1. int index,
    2. Iterable<E> iterable
    ),
  17. bool remove(
    1. Object? value
    ),
  18. E removeAt(
    1. int index
    ),
  19. E removeLast(),
  20. void removeWhere(
    1. bool test(
      1. E element
      )
    ),
  21. List<E> sublist(
    1. int start, [
    2. int? end
    ]),
  22. Iterable<E> getRange(
    1. int start,
    2. int end
    ),
  23. void setRange(
    1. int start,
    2. int end,
    3. Iterable<E> iterable, [
    4. int skipCount,
    ]),
  24. void removeRange(
    1. int start,
    2. int end
    ),
  25. void fillRange(
    1. int start,
    2. int end, [
    3. E? fillValue
    ]),
  26. void replaceRange(
    1. int start,
    2. int end,
    3. Iterable<E> replacements
    ),
  27. VoidCallback reset,
  28. Map<int, E> asMap(),
)

Implementation

ListAction(
  this._list,
  this.first,
  this.last,
  this.length,
  this.add,
  this.addAll,
  this.sort,
  this.shuffle,
  this.indexOf,
  this.indexWhere,
  this.lastIndexWhere,
  this.lastIndexOf,
  this.clear,
  this.insert,
  this.insertAll,
  this.setAll,
  this.remove,
  this.removeAt,
  this.removeLast,
  this.removeWhere,
  this.sublist,
  this.getRange,
  this.setRange,
  this.removeRange,
  this.fillRange,
  this.replaceRange,
  this.reset,
  this.asMap,
);