ScreenNameExtractor typedef

ScreenNameExtractor = String? Function(Route route)

Signature used to derive a screen name from a Route.

Return null to skip tracking the route entirely (for example, dialogs or bottom sheets that shouldn't count as screen views).

Implementation

typedef ScreenNameExtractor = String? Function(Route<dynamic> route);