maybeNotifierOf static method

ValueNotifier<String?>? maybeNotifierOf(
  1. BuildContext context
)

Returns the title ValueNotifier from the nearest enclosing scope, if any.

Implementation

static ValueNotifier<String?>? maybeNotifierOf(BuildContext context) {
  return context
      .getInheritedWidgetOfExactType<_InheritedNavigationTitleScope>()
      ?.notifier;
}