onSubmit method

Form onSubmit(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The submit event fires when a <form> is submitted. Read more...

Implementation

Form onSubmit(Function(Element, Event)? fun) {
  if (fun != null) on.call('submit', fun);
  return this;
}