title property

ScreenTitleBuilder? title
final

Localized title provider for this route.

Provide a callback that returns the title using the current BuildContext and optional RouteArgs, e.g. title: (context, [args]) => context.tr.homeTitle.

Because this is a function, it is evaluated at call time and picks up locale changes during the app session. If omitted, the route has no title.

Implementation

final ScreenTitleBuilder? title;