onSave method

Future<bool> onSave(
  1. BuildContext context
)

Hook called after the form has passed validation during submission/saving.

Can be overridden to intercept saving, perform asynchronous confirmation (e.g. showing confirmation dialogs with context), or run custom pre-save logic.

Return true to proceed with saving, or false to cancel/abort. Defaults to returning true.

Implementation

Future<bool> onSave(BuildContext context) async => true;