of static method

Implementation

static ContextMenuController? of(BuildContext context) => context
    .dependOnInheritedWidgetOfExactType<MenuContextControllerScope>()
    ?.controller;