submit static method
      
void
submit(})
      
     
    
Submit the form
Implementation
static void submit(String name,
    {required Function(dynamic value) onSuccess,
    Function(Exception exception)? onFailure,
    bool showToastError = true}) {
  /// Update the state
  updateState(state(name), data: {
    "onSuccess": onSuccess,
    "onFailure": onFailure,
    "showToastError": showToastError
  });
}