autoHideOnModal property

bool autoHideOnModal
final

When true (default), destroys the native switch's PlatformView while a modal sheet is presented above this widget's host route. Prevents the iOS hybrid-composition z-order bleed (Issue #53) where the host-page PlatformView's pixels leak through a sheet that also contains a PlatformView (CN-widget). Requires CNTabBarRouteObserver() to be registered in the app's navigatorObservers. No effect on non-iOS or iOS < 26 (Flutter fallback path).

Implementation

final bool autoHideOnModal;