forEachEmptyFieldComponent method

int forEachEmptyFieldComponent(
  1. ForEachComponent f
)

Implementation

int forEachEmptyFieldComponent(ForEachComponent f) {
  var count = 0;

  var list = getEmptyFields();

  for (var fieldName in list) {
    var elem = getFieldComponent(fieldName);
    if (elem != null) {
      f(elem);
      count++;
    }
  }

  return count;
}