KtMutableListExtensions<T> extension
- on
Properties
-
dart
→ List<
T> -
Available on KtMutableList<
Creates a List instance that wraps the original KtList. It acts as a view.T> , provided by the KtMutableListExtensions extensionno setter
Methods
-
fill(
T value) → void -
Available on KtMutableList<
Fills the list with the providedT> , provided by the KtMutableListExtensions extensionvalue
. -
removeFirst(
) → T -
Available on KtMutableList<
Removes the first element from this mutable list.T> , provided by the KtMutableListExtensions extension -
removeFirstOrNull(
) → T? -
Available on KtMutableList<
Removes the first element from this mutable list.T> , provided by the KtMutableListExtensions extension -
removeLast(
) → T -
Available on KtMutableList<
Removes the last element from this mutable list.T> , provided by the KtMutableListExtensions extension -
removeLastOrNull(
) → T? -
Available on KtMutableList<
Removes the last element from this mutable list.T> , provided by the KtMutableListExtensions extension -
reverse(
) → void -
Available on KtMutableList<
Reverses elements in the list in-place.T> , provided by the KtMutableListExtensions extension -
shuffle(
[Random? random]) → void -
Available on KtMutableList<
Shuffles elements in the list.T> , provided by the KtMutableListExtensions extension -
sortBy<
R extends Comparable> (R selector(T)) → void -
Available on KtMutableList<
Sorts elements in the list in-place according to natural sort order of the value returned by specifiedT> , provided by the KtMutableListExtensions extensionselector
function. -
sortByDescending<
R extends Comparable> (R selector(T)) → void -
Available on KtMutableList<
Sorts elements in the list in-place descending according to natural sort order of the value returned by specifiedT> , provided by the KtMutableListExtensions extensionselector
function. -
sortWith(
Comparator< T> comparator) → void -
Available on KtMutableList<
Sorts elements in the list in-place according to the specifiedT> , provided by the KtMutableListExtensions extensioncomparator
-
swap(
int indexA, int indexB) → void -
Available on KtMutableList<
Swaps the elements at the specified positions in the specified list. (If the specified positions are equal, invoking this method leaves the list unchanged.)T> , provided by the KtMutableListExtensions extension