maybeOf static method

ShellSlotsController? maybeOf(
  1. BuildContext context
)

Implementation

static ShellSlotsController? maybeOf(BuildContext context) {
  final element = context.getElementForInheritedWidgetOfExactType<CLShellScope>();
  return (element?.widget as CLShellScope?)?.notifier;
}