endExecutionWithError method
endExecutionWithData
will issue a CommandResult with
data: null
error: Exception(message
)
isExecuting : false
Implementation
void endExecutionWithError(String message) {
_handleError(
lastPassedValueToExecute,
Exception(message),
StackTrace.current,
);
_isExecuting.value = false;
if (_debugName != null) {
Command.loggingHandler?.call(_debugName, _commandResult.value);
}
}