platformViewChannel property

MethodChannel? get platformViewChannel

Override to expose the per-instance MethodChannel for the underlying PlatformView so the mixin can call setInteractive on it when a modal opens/closes. Return null if no channel exists yet — the mixin then skips the native call (no harm; the AbsorbPointer wrap still runs as a no-op).

The platform-side MethodChannel must implement a "setInteractive" handler that sets view.isUserInteractionEnabled = interactive ({interactive: bool}). This is the ONLY way to reliably block taps to a native iOS UIView during a Flutter modal — Flutter's AbsorbPointer does not propagate to native PlatformView touch handling.

Implementation

MethodChannel? get platformViewChannel => null;