This should close issue #70. the usage of .where((a) => a != null).toList() as List<Widget> does not work. with the filter of where you still end up with Widget? where non of them is null but you can't just cast List<T?> to List<T> that are not related types. Looks like there is a specific function for that whereType with a type parameter that can go from T?to T.
This should close issue #70. the usage of
.where((a) => a != null).toList() as List<Widget>
does not work. with the filter ofwhere
you still end up withWidget?
where non of them is null but you can't just castList<T?>
toList<T>
that are not related types. Looks like there is a specific function for that whereType with a type parameter that can go fromT?
toT
.