cancelEvent method
Implementation
@override
bool cancelEvent(Object? event, {bool stopImmediatePropagation = false}) {
if (event is UIEvent) {
if (event.cancelable!) {
event.preventDefault();
if (stopImmediatePropagation) {
event.stopImmediatePropagation();
}
return true;
}
}
return false;
}