setPublicKey method

void setPublicKey(
  1. String publicKey
)

set public key

Implementation

void setPublicKey(String publicKey) {
  if (publicKey.runtimeType != String) {
    throw Exception('public_key must be a string');
  } else {
    this.publicKey = publicKey;
  }
}