FebuIterableExtension<T> extension

on

Methods

atOrNull(int index) → T?

Available on Iterable<T>, provided by the FebuIterableExtension extension

Element at index or null, wont throw on negative number
firstWhereOrFallback(bool condition(T), {required T fallback}) → T

Available on Iterable<T>, provided by the FebuIterableExtension extension

Use firstWhere method and in case no match return fallback value
firstWhereOrNull(bool condition(T)) → T?

Available on Iterable<T>, provided by the FebuIterableExtension extension

Use firstWhere method and in case no match return null
lastWhereOrFallback(bool condition(T), {required T fallback}) → T

Available on Iterable<T>, provided by the FebuIterableExtension extension

Use lastWhere method and in case no match return fallback value
lastWhereOrNull(bool condition(T)) → T?

Available on Iterable<T>, provided by the FebuIterableExtension extension

Use lastWhere method and in case no match return null
mapToList<E>(E transformer(T)) List<E>

Available on Iterable<T>, provided by the FebuIterableExtension extension

Use map method then call toList method all in one go
whereToList(bool condition(T)) List<T>

Available on Iterable<T>, provided by the FebuIterableExtension extension

Use where method then call toList method all in one go