ScreenNameExtractor typedef

String ScreenNameExtractor (RouteSettings settings)

Signature for a function that extracts a screen name from RouteSettings.

Usually, the route name is not a plain string, and it may contains some unique ids that makes it difficult to aggregate over them in Firebase Analytics.

Implementation

typedef String ScreenNameExtractor(RouteSettings settings);