In Javascript , when I provide a function onSubmitand I return 'false' from the function, this prevents the page from changing / reloading.
However, in Dart, the function onSubmit.listen(...)does not accept a return type.
How to stop sending from sending form data and changing / reloading the page?
source
share