Discussion about this post

User's avatar
Manish's avatar

i think this can help you =>

List<T> findWidgets<T extends Widget>() => collectAllElementsFrom(

Widgets Binding.instance.renderViewElement, skipOffstage: false)

.map((e) => e.widget) .whereType<T>()

.tolist();

Expand full comment
3 more comments...

No posts

Ready for more?