validateMD5 method

bool validateMD5(
  1. String hash
)

Convert string to MD5 with validate

Implementation

bool validateMD5(String hash) {
  return MD5Digest().process(asUint8List()).asBase64() == hash;
}