onSubmit property
(dynamic Function()?, (dynamic, dynamic Function(dynamic data))?)?
onSubmit
final
Implementation
final (Function()? onPressed, (dynamic, Function(dynamic data))?)? onSubmit;