disableField method

void disableField(
  1. String id
)

Implementation

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

  if (!field.isEnabled.value) return;

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