toSigner method
Implementation
KeySigner toSigner() {
if (this is EncryptedKeyCreateInput) return const KeySigner.encrypted();
if (this is DerivedKeyCreateInput) return const KeySigner.derived();
if (this is LedgerKeyCreateInput) return const KeySigner.ledger();
throw UnsupportedError('Invalid signer');
}