getRegistryOrder static method

int getRegistryOrder(
  1. Attribute attribute
)

Implementation

static int getRegistryOrder(Attribute attribute) {
  var order = 0;
  for (final attr in _registry.values) {
    if (attr.key == attribute.key) {
      break;
    }
    order++;
  }

  return order;
}