ListResultExtensions<T, E> extension

Extensions for ListResult

on

Properties

firstOrNull → T?

Available on ListResult<T, E>, provided by the ListResultExtensions extension

Returns the list if it is success null otherwise
no setter
lengthOrNull int?

Available on ListResult<T, E>, provided by the ListResultExtensions extension

Returns the length of the list if it is success null otherwise
no setter

Methods

firstWhereOrNull(bool predicate(T)) → T?

Available on ListResult<T, E>, provided by the ListResultExtensions extension

Returns the first value in the list if it is success null otherwise
takeOrNull(int i) Iterable<T>?

Available on ListResult<T, E>, provided by the ListResultExtensions extension

Returns the first n elements of the list if it is success or null
whereOrNull(bool predicate(T)) Iterable<T>?

Available on ListResult<T, E>, provided by the ListResultExtensions extension

Returns the filtered elements of the list if it is success or null