title property

String Function(BuildContext context) get title

Builds page title that's passed to _PageBasedCupertinoPageRoute.title where it can be used by CupertinoNavigationBar

it can also be used manually by calling RouteData.title inside widgets

Implementation

String Function(BuildContext context) get title =>
    _match.titleBuilder == null ? (_) => _match.name : (context) => _match.titleBuilder!(context, this);