toMd5 method

String toMd5()

Converts the string to an MD5 hash.

Implementation

String toMd5() {
  final value = this ?? '';
  return md5.convert(utf8.encode(value)).toString();
}