submit static method
dynamic
submit(})
Submit the form
Implementation
static 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
});
}