endExecutionWithError method
endExecutionWithData
will issue a CommandResult with
data: null
error: Exception(message
)
isExecuting : false
Implementation
void endExecutionWithError(String message) {
_commandResult.value = CommandResult<TParam, TResult>(
lastPassedValueToExecute,
_includeLastResultInCommandResults ? value : null,
CommandError(lastPassedValueToExecute, Exception(message)),
false);
_isExecuting.value = false;
}