PagePropertiesFactory typedef

PagePropertiesFactory = Map<String, Object?>? Function(Route current, Route? previous)

Function used to generate or update properties for a page when transitioning from previous to current.

previous will be null for the first page in the app.

Implementation

typedef PagePropertiesFactory = Map<String, Object?>? Function(
    Route<dynamic> current, Route<dynamic>? previous);