submit property
Future<void> Function()?
get
submit
Returns the handleSubmit method if submittableWhen is null or true, otherwise returns null.
Implementation
Future<void> Function()? get submit {
final canSubmit = submittableWhen?.call(status) ?? true;
return canSubmit ? handleSubmit : null;
}