respond method
- required bool allowPlatformDefault,
Sends a response to the native embedder for the PointerSignalEvent.
The parameter allowPlatformDefault
allows the platform to perform the
default action associated with the native event when it's set to true
.
This method can be called any number of times, but once allowPlatformDefault
is set to true
, it can't be set to false
again.
The implementation of this method is configured through the onRespond
parameter of the PointerSignalEvent constructor.
See also RespondPointerEventCallback.
Implementation
@override
void respond({required bool allowPlatformDefault}) {
if (_onRespond != null) {
_onRespond!(allowPlatformDefault: allowPlatformDefault);
}
}