attributesNamed method

Iterable<ModelAttribute> attributesNamed(
  1. String name
)

Iterates over model-level attributes named name.

Implementation

Iterable<ModelAttribute> attributesNamed(String name) sync* {
  for (final attribute in attributes) {
    if (attribute.name == name) {
      yield attribute;
    }
  }
}