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