generateDigestForSingleFile static method

String generateDigestForSingleFile(
  1. String filePath
)

Calculates the MD5 digest of a given file filePath.

Implementation

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