hideField method

void hideField(
  1. String id
)

Implementation

void hideField(String id) {
  var field = widget.children
      .whereType<AutoFieldWidget>()
      .firstWhere((e) => e.id == id);

  if (field.isHidden.value) return;

  field.hide();
  setState(() {});
}