Hashes files so a tool can tell a local edit from what it installed.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isText(
String path) → bool -
Whether
pathis hashed as text. -
isToolPath(
String relative) → bool -
Whether
relativeis inside a folder tools make —.dart_tool,.gitor.ideaat any depth,buildat the top — or is a pub lockfile or Flutter's plugin list. -
of(
String path, List< int> bytes) → String -
The hash of
bytes, the content ofpath: SHA-256, with CRLF read as LF for text files. -
ofFolder(
Directory dir) → Map< String, String> -
Every file under
dir, by path relative to it, with its hash. Tool folders (.dart_tool,build,.git…) are skipped.
Constants
-
textExtensions
→ const Set<
String> - Extensions hashed as text: line endings are ignored, so a checkout that turned LF into CRLF (git's core.autocrlf) is not an edit.