formPostable method

Future<bool> formPostable(
  1. String? key
)

Implementation

Future<bool> formPostable(String? key) async {
  // No Associated Form
  if (isNullOrEmpty(key)) return true;

  // Lookup the Form
  hive_pack.Form? form = await hive_pack.Form.find(key);

  // Form Not Found
  if (form == null) return true;

  // Form Not Complete
  if (!form.complete) return false;

  // Parent Postable?
  return await formPostable(form.parent);
}