Dart DocumentationioPubProcessResult

PubProcessResult class

Contains the results of invoking a Process and waiting for it to complete.

class PubProcessResult {
 final List<String> stdout;
 final List<String> stderr;
 final int exitCode;

 const PubProcessResult(this.stdout, this.stderr, this.exitCode);

 bool get success => exitCode == 0;
}

Constructors

const PubProcessResult(List<String> stdout, List<String> stderr, int exitCode) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
const PubProcessResult(this.stdout, this.stderr, this.exitCode);

Properties

final int exitCode #

final int exitCode

final List<String> stderr #

final List<String> stderr

final List<String> stdout #

final List<String> stdout

final bool success #

bool get success => exitCode == 0;