Ran class

Constructors

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

Properties

exitCode ↔ int?
ExitCode is the PROGRAM's own status — 0 succeeded, anything else is what it returned, and a Command runs under sh -c so its shell's conventions apply. A command that never reached an exit does not arrive here at all: a timeout or a stop cancels the channel, and that is an error on the call rather than a code of ours invented to fill this field.
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 standard error, kept apart from Stdout so a caller reading a program's OUTPUT is not reading its diagnostics as data. Same 1 MiB cap, same redaction. A program that failed usually says why here and nowhere else.
getter/setter pair
stdout ↔ String?
Stdout is what the program wrote to standard output, collected whole rather than streamed — to watch it arrive instead, name a RunIn.Session and read that session's feed. Capped at 1 MiB, past which it ends in "truncated at 1MiB". Every string named in RunIn.Blind is replaced by "redacted" before it gets here, and before it reaches the session.
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) → Ran?
Returns a new Ran instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Ran>
mapFromJson(dynamic json) → Map<String, Ran>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Ran>>

Constants

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