maybeOf static method

Object? maybeOf(
  1. BuildContext context
)

Implementation

static Object? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<TMenuScope>()?.rootId;
}