onInvalid method
The invalid event fires when a submittable element has been checked for validity and doesn't satisfy its constraints. Read more...
Implementation
Input onInvalid(Function(Element, Event)? fun) {
if (fun != null) on.call('invalid', fun);
return this;
}