KeyPair class

Represents a key pair consisting of a public key and a private key.

Constructors

KeyPair({required String publicKey, required String privateKey})
Constructs a KeyPair with the specified public and private keys.

Properties

hashCode int
The hash code for this object.
no setterinherited
privateKey String
The private key of the key pair.
getter/setter pair
publicKey String
The public key of the key pair.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromString(String keys) KeyPair
Creates a KeyPair object from a space-separated string containing a public key and a private key.
isValid() bool
Checks the validity of the key pair represented by this KeyPair instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of the key pair in the format "publicKey privateKey".
override

Operators

operator ==(Object other) bool
The equality operator.
inherited