metadata property

Map<String, dynamic> metadata
final

Merged application-defined metadata for the current route match.

Metadata is inherited from parent routes, and child routes override parent values with the same key. For example, if a parent route has {'section': 'library', 'requiresAuth': true} and the matched child route has {'requiresAuth': false, 'title': 'Preview'}, this value is {'section': 'library', 'requiresAuth': false, 'title': 'Preview'}.

Implementation

final Map<String, dynamic> metadata;