findRootAncestorStateOfType<T extends State<StatefulWidget> > abstract method
T?
findRootAncestorStateOfType<T extends State<StatefulWidget> >()
Returns the State object of the furthest ancestor StatefulWidget
widget that is an instance of the given type T
.
Implementation
T? findRootAncestorStateOfType<T extends State<StatefulWidget>>();