toIndexesMap method

Map<Ed25519HDPublicKey, int> toIndexesMap()

Implementation

Map<Ed25519HDPublicKey, int> toIndexesMap() {
  final Map<Ed25519HDPublicKey, int> mapped = {};

  for (int i = 0; i < length; ++i) {
    final AccountMeta item = elementAt(i);
    mapped[item.pubKey] = i;
  }

  return mapped;
}