attribute method
Finds the first field-level attribute named name.
Implementation
FieldAttribute? attribute(String name) {
for (final attribute in attributes) {
if (attribute.name == name) {
return attribute;
}
}
return null;
}