onPop property
Called when this template is popped from the navigation stack.
Fires for both user-initiated pops (CarPlay back button) and programmatic pops via FlutterCarplay.pop. Useful for cleaning up subscriptions, state listeners, or analytics events tied to this template's lifetime.
Not called for modal templates (alerts, action sheets) — those have their own lifecycle hooks.
Implementation
final VoidCallback? onPop;