toSigner method
Implementation
KeySigner toSigner() {
if (this is EncryptedKeyPassword) return const KeySigner.encrypted();
if (this is DerivedKeyPassword) return const KeySigner.derived();
if (this is LedgerSignInput) return const KeySigner.ledger();
throw UnsupportedError('Invalid signer');
}