maybeTitleOf static method
Resolves the active navigation title from an ancestor .navigationTitle
wrapper, if any.
Implementation
static String? maybeTitleOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<_InheritedNavigationTitle>()
?.title;
}