ScreenNameExtractor typedef

ScreenNameExtractor = String? Function(RouteSettings settings)

Extracts a PostHog screen name from Flutter RouteSettings.

Return null to skip tracking the route. The settings argument is the route settings from the route being pushed, popped to, or replaced.

Implementation

typedef ScreenNameExtractor = String? Function(RouteSettings settings);