defaultTitleGenerator property

String Function(String, String?) defaultTitleGenerator
getter/setter pair

Default function for combining the app name and route name into a title.

Implementation

static String Function(String, String?) defaultTitleGenerator =
    (appName, routeName) =>
        (routeName?.isEmpty ?? true) ? appName : "$appName | $routeName";