isAllRequiredValuesSet method

bool isAllRequiredValuesSet()

Implementation

bool isAllRequiredValuesSet() {
  if (isRequired) {
    final res = values.entries.every(
            (kv) => kv.value.isNotEmpty || kv.key == ItemType.byDefault) ||
        values[ItemType.byDefault]!.isNotEmpty;

    return res;
  } else {
    return true;
  }
}