onGenerateTitle property
String Function(BuildContext)?
get
onGenerateTitle
A function that generates the title dynamically based on context.
This is useful for localized titles or context-dependent names.
Takes precedence over title if provided.
Example: (context) => AppLocalizations.of(context).appTitle
Implementation
String Function(BuildContext)? get onGenerateTitle => null;