byIndex method

SolAddress? byIndex(
  1. dynamic index
)

Retrieve the Solana address at the specified index.

Implementation

SolAddress? byIndex(index) {
  for (final keySegment in _keySegments) {
    if (index < keySegment.length) {
      return keySegment[index];
    } else {
      index -= keySegment.length;
    }
  }
  return null;
}