ConsulListExtensions<E> extension
- on
-
- List<
E>
- List<
Methods
-
drop(
int count) → List< E> -
Available on List<
Drop firstE> , provided by the ConsulListExtensions extensioncount
items fromthis
list, returning the remainder as a new list. -
dropLast(
int count) → List< E> -
Available on List<
Drop lastE> , provided by the ConsulListExtensions extensioncount
items fromthis
list, returning the remainder as a new list. -
firstWhereOrNull(
bool predicate(E)) → E? -
Available on List<
Find first item in this list fulfillingE> , provided by the ConsulListExtensions extensionpredicate
. Will not evaluate on the remaining items after the first match is found. -
lastWhereOrNull(
bool predicate(E)) → E? -
Available on List<
Find last item in this list fulfillingE> , provided by the ConsulListExtensions extensionpredicate
. Will not evaluate on the remaining items before the found match. -
mapNotNull<
R> (R? predicate(E)) → List< R> -
Available on List<
Returns a list of all non-null items returned by applyingE> , provided by the ConsulListExtensions extensionpredicate
on the items of this list. -
take_(
int count) → List< E> -
Available on List<
TakeE> , provided by the ConsulListExtensions extensioncount
items from the front of this list, returning the result as a list. -
takeLast(
int count) → List< E> -
Available on List<
TakeE> , provided by the ConsulListExtensions extensioncount
items from the end of this list, returning the result as a list.