of static method

The lead of the menu round context; null outside an open menu (a menu drawn in place on a page), where a row draws what its states say.

Implementation

static Fluent2MenuLeadState? of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<_Lead>()?.state;