isSuccess property

bool get isSuccess

if a CommandResult is not running and has no error, it is considered successful if the command has no return value, this can be used to check if the command was executed successfully

Implementation

bool get isSuccess => !isRunning && !hasError;