SealedWorldNullableIterableIsoExtension<T extends IsoStandardized<Object> > extension
Extension on Iterable class to provide helper methods for working with nullable IsoStandardized collections.
- on
-
- Iterable<
T> ?
- Iterable<
Methods
-
firstIsoWhereCodeOrNull(
Object? code) → T? -
Returns the first IsoStandardized element in the collection that has the
given regular
code
, ornull
if there is no such element. -
firstIsoWhereCodeOtherOrNull(
Object? codeOther) → T? -
Returns the first IsoStandardized element in the collection that has the
given other
codeOther
, ornull
if there is no such element. -
firstIsoWhereOrNull(
bool test(T iso), {bool assertNotEmpty = true}) → T? -
The first IsoStandardized element satisfying
test
, ornull
if there are none. IfassertNotEmpty
is set totrue
(default tofalse
), then an AssertionError is thrown if the collection is empty.