onSubmit property

SubmitFunc<TKey> onSubmit
final

Callback function that gets executed when LoFormState.submit is called with fields' values as first parameter and setError function as second one which is used to set external API errors.

Should return:

  • true if the submission has succeeded.
  • false if the submission has failed.
  • null if the submission has API errors (use setError to set them).

Implementation

final SubmitFunc<TKey> onSubmit;