ScreenNameExtractor typedef

ScreenNameExtractor = String? Function(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 AppCenter Analytics.

Implementation

typedef ScreenNameExtractor = String? Function(RouteSettings settings);