NullableIterableConversionX<E> extension

Conversion helpers for nullable Iterable collections.

on

Methods

tryGetBigInt(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, BigInt? defaultValue, ElementConverter<BigInt>? converter}) BigInt?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to BigInt.
tryGetBool(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, bool? defaultValue, ElementConverter<bool>? converter}) bool?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to bool.
tryGetDateTime(int index, {List<int>? alternativeIndices, 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 NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to DateTime.
tryGetDouble(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? format, String? locale, double? defaultValue, ElementConverter<double>? converter}) double?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to double.
tryGetEnum<T extends Enum>(int index, {required T parser(dynamic), List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, T? defaultValue, Map<String, dynamic>? debugInfo}) → T?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to an enum using parser.
tryGetInt(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? format, String? locale, int? defaultValue, ElementConverter<int>? converter}) int?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to int.
tryGetList<T>(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, List<T>? defaultValue, ElementConverter<T>? elementConverter}) List<T>?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to a List of T.
tryGetMap<K2, V2>(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, Map<K2, V2>? defaultValue, ElementConverter<K2>? keyConverter, ElementConverter<V2>? valueConverter}) Map<K2, V2>?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to a Map of K2 to V2.
tryGetNum(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? format, String? locale, num? defaultValue, ElementConverter<num>? converter}) num?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to num.
tryGetSet<T>(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, Set<T>? defaultValue, ElementConverter<T>? elementConverter}) Set<T>?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to a Set of T.
tryGetString(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, String? defaultValue, ElementConverter<String>? converter}) String?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to String.
tryGetUri(int index, {List<int>? alternativeIndices, dynamic innerMapKey, int? innerIndex, Uri? defaultValue, ElementConverter<Uri>? converter}) Uri?

Available on Iterable<E>?, provided by the NullableIterableConversionX extension

Tries to convert the element at index (or fallback indices) to Uri.