hasField method

bool hasField (
  1. TypeDefinition otherField
)

Implementation

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