getByIndex static method

FloatLength getByIndex(
  1. int index
)

Implementation

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