calculateDigestFor static method

String calculateDigestFor(
  1. String filePath
)

Calculates the MD5 digest of a given file filePath.

Implementation

static String calculateDigestFor(String filePath) {
  return md5.convert(File(filePath).readAsBytesSync()).toString();
}