getField method
Returns the field with the given name, or null
if this element does not have a field with the given name.
Implementation
@override
FieldElement? getField(String name) {
for (final FieldElement field in fields) {
if (field.name == name) {
return field;
}
}
return null;
}