enableField method

void enableField(
  1. String id
)

Implementation

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

  if (field.isEnabled.value) return;

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