sha1DigestAsString method
Get the SHA1 digest of a supplied absolute file path as a string. Returns the digest or empty if it could not be calculated.
Implementation
String sha1DigestAsString(String path) {
final digest = _sha1Digest(path);
return digest == null ? '' : digest.toString();
}