hasRuleForEntityTypeField method

bool hasRuleForEntityTypeField(
  1. Type type
)

Implementation

bool hasRuleForEntityTypeField(Type type) {
  if (isInnocuous) return false;

  if (entityType == type) {
    var entityFields = this.entityFields;
    return entityFields != null && entityFields.isNotEmpty;
  }

  final rules = this.rules;
  return rules != null && rules.any((r) => r.hasRuleForEntityTypeField(type));
}