Utils class abstract
A utility class that provides helper methods for various operations.
Constructors
- Utils()
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
- appCacheDirectory ↔ String
-
getter/setter pair
- appPackageName ↔ String
-
getter/setter pair
- isRedisUsed ↔ bool
-
getter/setter pair
- isVerbose ↔ bool
-
getter/setter pair
- projectDirectory ↔ String
-
getter/setter pair
Static Methods
-
calculateDigestFor(
String filePath) → String -
Calculates the MD5 digest of a given file
filePath
. -
calculateDigestForString(
String value) → String -
Calculates the MD5 digest of a given string
value
. -
calculateTestFileDigestFor(
List< String> dependencies) → String -
Calculates the test file digest for the provided
dependencies
list. -
delay500ms(
) → Future< void> - Delays the execution for 500 milliseconds.
-
getDefaultCacheDirectory(
) → String - Returns the default cache directory based on the user's platform.
-
getDefaultProjectDirectory(
) → String - Returns the default project directory, which is the current directory.
-
getFileName(
String path) → String -
Retrieves the file name from the given
path
. -
getFilePathFromImportLine(
String importLine) → String -
Retrieves the file path from the import line
importLine
of a package. -
initAppPackageName(
) → void - Initializes the app package name by reading it from pubspec.yaml.
-
logHeader(
String title) → void -
Logs a header
title
to the console.