Future<String> get sha256 async { if (!existsSync()) { throw '$path does not exist.'; } final hash = await openRead().transform(_sha256).single; return hash.toString(); }