You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the isSubtypeOf api today but there are cases where you want something more like isExactly.
The specific use case I ran into is for autoListenable. I want to be able to find the widget class for a state class. The way I want to do that is to walk up the super hierarchy until I find the State class, and then grab the type argument from that.
classMyStateextendsState<MyWidget> {}
Today I just ended up doing a String name check.
The text was updated successfully, but these errors were encountered:
We have the
isSubtypeOf
api today but there are cases where you want something more likeisExactly
.The specific use case I ran into is for
autoListenable
. I want to be able to find the widget class for a state class. The way I want to do that is to walk up the super hierarchy until I find theState
class, and then grab the type argument from that.Today I just ended up doing a String name check.
The text was updated successfully, but these errors were encountered: