getByIndex static method

XtzAddrPrefixes getByIndex(
  1. int index
)

Implementation

static XtzAddrPrefixes getByIndex(int index) {
  if (index >= 0 && index < values.length) {
    return values[index];
  }
  throw MessageException('Index out of bounds', details: {"index": index});
}