Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash in flutter2; use correct way to filter nullable widgets #71

Closed
wants to merge 1 commit into from

Conversation

pythoneer
Copy link

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.

@pythoneer
Copy link
Author

sorry i did not really test this and didn't see that there already is a pull request solving this here #69

closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant