NullableListPick extension
- on
Methods
-
asListOrEmpty<
T> (T map(RequiredPick), {T whenNull(Pick pick)?}) → List< T> -
Returns the picked value as List or an empty list when the
value
isn't a List or isAbsent. -
asListOrNull<
T> (T map(RequiredPick), {T whenNull(Pick pick)?}) → List< T> ? -
Returns the picked value as List or null when the
value
isn't a List or isAbsent. -
asListOrThrow<
T> (T map(RequiredPick), {T whenNull(Pick pick)?}) → List< T> -
Returns the picked value as List. This method throws when value is
not a
List
or isAbsent