hasField method

bool hasField(
  1. TypeDefinition otherField
)

Implementation

bool hasField(TypeDefinition otherField) {
  return fields.keys.firstWhereOrNull((k) => fields[k] == otherField) != null;
}