itemIsNullable property
bool
get
itemIsNullable
Indicates if the items (for lists) or values (for maps) within the collection are nullable. E.g., for List<T?>, this returns true.
Implementation
bool get itemIsNullable => switch (this) {
UniversalCollections.listNullableItem ||
UniversalCollections.nullableListNullableItem ||
UniversalCollections.mapNullableValue ||
UniversalCollections.nullableMapNullableValue =>
true,
_ => false,
};