toSigner method
Implementation
KeySigner toSigner() {
if (this is EncryptedKeyGetPublicKeys) return const KeySigner.encrypted();
if (this is DerivedKeyGetPublicKeys) return const KeySigner.derived();
if (this is LedgerKeyGetPublicKeys) return const KeySigner.ledger();
throw UnsupportedError('Invalid signer');
}