findAncestorStateOfType<T extends State<StatefulWidget>> abstract method

T? findAncestorStateOfType<T extends State<StatefulWidget>>()

Returns the State object of the nearest ancestor StatefulWidget widget that is an instance of the given type T.

Implementation

T? findAncestorStateOfType<T extends State>();