indexOfPubKey method

int indexOfPubKey(
  1. Ed25519HDPublicKey pubKey
)

Find an account with a matching pubKey.

Implementation

int indexOfPubKey(Ed25519HDPublicKey pubKey) =>
    toList(growable: false).indexWhere((account) => account.pubKey == pubKey);