has<T extends InheritedWidget> static method

bool has<T extends InheritedWidget>()

If the widget has been mounted with its State object

Implementation

static bool has<T extends InheritedWidget>() => _states.containsKey(T);