maybeTitleOf static method

String? maybeTitleOf(
  1. BuildContext context
)

Resolves the active navigation title from an ancestor .navigationTitle wrapper, if any.

Implementation

static String? maybeTitleOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<_InheritedNavigationTitle>()
      ?.title;
}