ListCopyWith<$R, $E, $C> class
abstract
Interface used for Lists in chained copyWith methods All methods return a new modified list and do not modify the original list
Constructors
-
ListCopyWith(List<
$E> value, ItemCopyWith<$C, $E, $R> item, Then<List< then)$E> , $R> -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
$E v) → $R - Returns a new list with the item added to the end of the list
-
addAll(
Iterable< $E> v) → $R - Returns a new list with the items added to the end of the list
-
apply(
List< $E> transform(List<$E> )) → $R - Applies any transformer function on the value
-
at(
int index) → $C -
Access the copyWith interface for the item at
index
-
insert(
int index, $E v) → $R -
Returns a new list with the item inserted at
index
-
insertAll(
int index, Iterable< $E> v) → $R -
Returns a new list with the items inserted at
index
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAt(
int index) → $R -
Returns a new list without the item at
index
-
replace(
int index, $E v) → $R -
Returns a new list with the item at
index
replaced with a new value -
skip(
int count) → $R -
Returns a new list without the first
count
items -
splice(
int index, int removeCount, [Iterable< $E> ? toInsert]) → $R -
Returns a new spliced list with
removeCount
items removed andtoInsert
inserted atindex
-
sublist(
int start, [int? end]) → $R -
Returns a new list with items at index
start
inclusive toend
exclusive. -
take(
int count) → $R -
Returns a new list with only the first
count
items -
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool test($E)) → $R -
Returns a filtered list with only the items the pass
test
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited