ListResultExtensions<T, E> extension
Extensions for ListResult
- on
-
- ListResult<
T, E>
- ListResult<
Properties
- firstOrNull → T?
-
Available on ListResult<
Returns the list if it is success null otherwiseT, E> , provided by the ListResultExtensions extensionno setter - lengthOrNull → int?
-
Available on ListResult<
Returns the length of the list if it is success null otherwiseT, E> , provided by the ListResultExtensions extensionno setter
Methods
-
firstWhereOrNull(
bool predicate(T)) → T? -
Available on ListResult<
Returns the first value in the list if it is success null otherwiseT, E> , provided by the ListResultExtensions extension -
takeOrNull(
int i) → Iterable< T> ? -
Available on ListResult<
Returns the first n elements of the list if it is success or nullT, E> , provided by the ListResultExtensions extension -
whereOrNull(
bool predicate(T)) → Iterable< T> ? -
Available on ListResult<
Returns the filtered elements of the list if it is success or nullT, E> , provided by the ListResultExtensions extension