ScreenNameExtractor typedef
Signature for a function that extracts a screen name from Route.settings.
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 analytics service.
Implementation
typedef ScreenNameExtractor = String? Function(Route<dynamic> route);