complete method
Implementation
Future<bool> complete() async
{
busy = true;
bool ok = true;
// Set Complete
status = StatusCodes.complete;
// Post Sub-Forms
for (IForm form in forms)
{
ok = await form.complete();
if (!ok) break;
}
// Save the Form
HIVE.Form? form = await save();
// Post the Form
if (ok) ok = await _post(form);
// Set Clean
if (ok == true) clean = true;
// fire on complete events
if (ok && _oncomplete != null) ok = await EventHandler(this).execute(_oncomplete);
busy = false;
return ok;
}