SourceFileManager class
Utility class for loading source files from a directory.
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 Properties
- lockCheckDelay ↔ Duration
-
The delay between consecutive checks when waiting for a file to be unlocked.
getter/setter pair
Static Methods
-
isFileLocked(
File file) → bool - Returns whether the given file is locked or not.
-
load(
File file, List< String> extensions) → SourceFile? -
Loads a SourceFile from the given
fileif its extension matches one of the allowedextensions. -
loadAll(
Directory entryDir, List< String> extensions) → List<SourceFile> -
Recursively loads all files under
entryDirand returns them as a list of SourceFile instances. Throws an exception ifentryDirdoes not exist.