onExec property

ExecResult Function(List<String> command) onExec
getter/setter pair

Answers exec. Defaults to success with no output.

The fake runs nothing, so a test states what the command would have done.

Implementation

ExecResult Function(List<String> command) onExec = (_) =>
    const ExecResult(exitCode: 0, output: '');