onSaved is the function that will be called when the form is saved
final void Function(String?) onSaved;