of static method

Implementation

static DropdownMenuController? of(BuildContext context) {
  final _DropdownMenuControllerScope? scope = context.dependOnInheritedWidgetOfExactType<_DropdownMenuControllerScope>();
  return scope?.controller;
}