idsAs<I> method

List<I?> idsAs<I>()

Returns the ids with type I or null. See idsNotNullAs.

Implementation

List<I?> idsAs<I>() => ids?.map((e) => e is I ? e : null).toList() ?? [];