castToListOf<S> method

List<S> castToListOf<S>()

Implementation

List<S> castToListOf<S>() => map((e) => e as S?).filterNotNull();