ScriptExecutionResult.failure constructor
ScriptExecutionResult.failure(
- String error, {
- StackTrace? stackTrace,
- int sourcesLoaded = 0,
Create a failed result.
Implementation
factory ScriptExecutionResult.failure(
String error, {
StackTrace? stackTrace,
int sourcesLoaded = 0,
}) {
return ScriptExecutionResult._(
success: false,
error: error,
stackTrace: stackTrace,
sourcesLoaded: sourcesLoaded,
);
}