BashScript class

A class that represents a Bash script file.

Constructors

BashScript(String _filePath)

Properties

fileInstance File?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

contents() Future<String?>
Returns the contents of the script file.
contentsSync() String?
Returns the contents of the script file.
exists() Future<bool>
Returns true if the script file exists.
existsSync() bool
Returns true if the script file exists.
get(String param) Future<String?>
Returns the value of a variable in the script file.
getArray(String arrayName) Future<List<String>?>
Returns the array with the specified name from the script.
getFirstProvides() Future<String?>
Returns the first value of the PROVIDES array.
hasFunction(String functionName) Future<bool>
Returns true if the script file contains a function with the given functionName.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
variables() Future<Map<String, String?>?>
Returns a map of all variables in the script file.

Operators

operator ==(Object other) bool
The equality operator.
inherited