success property

Future<bool> success

Whether the script succeeded or failed (that is, whether it emitted an exit code of 0).

Throws any Dart exceptions that come up when running this Script.

Implementation

Future<bool> get success async => await exitCode == 0;