findWidget<T extends Widget> method

T? findWidget<T extends Widget>()

Returns the Widget of the nearest Page that is an instance of the given type T.

Implementation

T? findWidget<T extends Widget>() {
  return widget._state.findWidget<T>();
}