hasField method

dynamic hasField(
  1. TypeDefinition otherField
)

Implementation

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