IterableConversionX<E> extension

Conversion helpers for non-null Iterable collections.

on

Methods

convertAll<T>() List<T>

Available on Iterable<E>, provided by the IterableConversionX extension

Converts every element in this iterable to T.
getBigInt(int index, {dynamic innerMapKey, int? innerIndex, BigInt? defaultValue, ElementConverter<BigInt>? converter}) BigInt

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a BigInt.
getBool(int index, {dynamic innerMapKey, int? innerIndex, bool? defaultValue, ElementConverter<bool>? converter}) bool

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a bool.
getDateTime(int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, bool autoDetectFormat = false, bool useCurrentLocale = false, bool utc = false, DateTime? defaultValue, ElementConverter<DateTime>? converter}) DateTime

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a DateTime.
getDouble(int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, double? defaultValue, ElementConverter<double>? converter}) double

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a double.
getEnum<T extends Enum>(int index, {required T parser(dynamic), dynamic innerMapKey, int? innerIndex, T? defaultValue}) → T

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to an enum value using parser.
getInt(int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, int? defaultValue, ElementConverter<int>? converter}) int

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to an int.
getList<T>(int index, {dynamic innerMapKey, int? innerIndex, List<T>? defaultValue}) List<T>

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a List of T.
getMap<K2, V2>(int index, {dynamic innerMapKey, int? innerIndex, Map<K2, V2>? defaultValue}) Map<K2, V2>

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a Map of K2 to V2.
getNum(int index, {dynamic innerMapKey, int? innerIndex, String? format, String? locale, num? defaultValue, ElementConverter<num>? converter}) num

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a num.
getSet<T>(int index, {dynamic innerMapKey, int? innerIndex, Set<T>? defaultValue}) Set<T>

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a Set of T.
getString(int index, {dynamic innerMapKey, int? innerIndex, String? defaultValue, ElementConverter<String>? converter}) String

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a String.
getUri(int index, {dynamic innerMapKey, int? innerIndex, Uri? defaultValue, ElementConverter<Uri>? converter}) Uri

Available on Iterable<E>, provided by the IterableConversionX extension

Converts the element at index to a Uri.
intersect(Iterable other, {ElementConverter<E>? converter}) Set<E>

Available on Iterable<E>, provided by the IterableConversionX extension

Returns a union-like set combining this iterable and other.
mapIndexedList<R>(R mapper(int index, E element), {ElementConverter<R>? converter}) List<R>

Available on Iterable<E>, provided by the IterableConversionX extension

Maps elements with their index and eagerly materializes the result into a List.
mapList<R>(R mapper(E e), {ElementConverter<R>? converter}) List<R>

Available on Iterable<E>, provided by the IterableConversionX extension

Maps the elements and eagerly materializes them into a List using convert_object.
toMutableSet({ElementConverter<E>? converter}) Set<E>

Available on Iterable<E>, provided by the IterableConversionX extension

Returns this iterable as a mutable Set using the centralized conversion logic.