isPostable static method

bool isPostable(
  1. IForm form,
  2. IFormField field
)

Implementation

static bool isPostable(IForm form, IFormField field) {
  if (field.post != null) return field.post!;
  if (form.post != null) return form.post!;
  if (field.value == null) return false;
  if (field is List && (field as List).isEmpty) return false;
  return true;
}