getHash function

String getHash(
  1. String text
)

Implementation

String getHash(String text) {
  final hashedText = md5.convert(utf8.encode(text)).toString();
  if (getHashDebug) {
    logDebug("Hashing text: '$text' -> '$hashedText'");
  }
  return hashedText;
}