ExecResult class

Constructors

ExecResult({int? exitCode, String? stderr, String? stdout})
Returns a new ExecResult instance.

Properties

exitCode ↔ int?
ExitCode is the command's own exit status. A non-zero one is a SUCCESSFUL call carrying a failed command — the HTTP status stays 200, because "the command failed" and "the call failed" are different facts and a caller has to be able to tell them apart.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stderr ↔ String?
Stderr is everything it wrote to standard error. It is populated on a successful run too — plenty of tools report progress there — so it is not a signal that anything went wrong; ExitCode is.
getter/setter pair
stdout ↔ String?
Stdout is everything the command wrote to standard output, as text.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → ExecResult?
Returns a new ExecResult instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ExecResult>
mapFromJson(dynamic json) → Map<String, ExecResult>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ExecResult>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.