onPasteEvent property

bool Function(PasteEvent event)? onPasteEvent
getter/setter pair

Optional callback to intercept paste events before they are routed to the focused layer. If this returns true, the event is consumed and not propagated.

Implementation

bool Function(PasteEvent event)? onPasteEvent;