findAncestorStateOfType<T extends State<StatefulWidget>> abstract method

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

Returns the nearest ancestor State of type T, or null.

Implementation

T? findAncestorStateOfType<T extends State>();