onInvalid method

Input onInvalid(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

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;
}