toSha256 property

String get toSha256

Implementation

String get toSha256 {
  if (this.isEmptyString) {
    return "";
  }
  var bytes = utf8.encode(this);
  var digest = sha256.convert(bytes);
  return digest.toString();
}