toSigner method
Implementation
KeySigner toSigner() {
if (this is EncryptedKeyUpdateParams) return const KeySigner.encrypted();
if (this is DerivedKeyUpdateParams) return const KeySigner.derived();
if (this is LedgerUpdateKeyInput) return const KeySigner.ledger();
throw UnsupportedError('Invalid signer');
}