diff --git a/playground/frontend/playground_components/lib/src/controllers/code_runner.dart b/playground/frontend/playground_components/lib/src/controllers/code_runner.dart index 1bfadb6d53a2..a348c736c9f8 100644 --- a/playground/frontend/playground_components/lib/src/controllers/code_runner.dart +++ b/playground/frontend/playground_components/lib/src/controllers/code_runner.dart @@ -83,9 +83,9 @@ class CodeRunner extends ChangeNotifier { if (parsedPipelineOptions == null) { _setResult( RunCodeResult( + errorMessage: kPipelineOptionsParseError, sdk: sdk, status: RunCodeStatus.compileError, - errorMessage: kPipelineOptionsParseError, ), ); _runStopDate = DateTime.now(); @@ -130,9 +130,9 @@ class CodeRunner extends ChangeNotifier { _setResult( RunCodeResult( + output: _result!.output, sdk: _result!.sdk, status: _result!.status, - output: _result!.output, ), ); @@ -155,11 +155,11 @@ class CodeRunner extends ChangeNotifier { _setResult( RunCodeResult( + graph: _result?.graph, + log: (_result?.log ?? '') + kExecutionCancelledText, + output: _result?.output, sdk: sdk, status: RunCodeStatus.finished, - output: _result?.output, - log: (_result?.log ?? '') + kExecutionCancelledText, - graph: _result?.graph, ), ); @@ -184,11 +184,11 @@ class CodeRunner extends ChangeNotifier { final String logs = selectedExample.logs ?? ''; _setResult( RunCodeResult( + graph: selectedExample.graph, + log: kCachedResultsLog + logs, + output: selectedExample.outputs, sdk: selectedExample.sdk, status: RunCodeStatus.finished, - output: selectedExample.outputs, - log: kCachedResultsLog + logs, - graph: selectedExample.graph, ), ); diff --git a/playground/frontend/playground_components/lib/src/enums/unread_entry.dart b/playground/frontend/playground_components/lib/src/enums/unread_entry.dart index 58b5f55cef66..f4bbc9943603 100644 --- a/playground/frontend/playground_components/lib/src/enums/unread_entry.dart +++ b/playground/frontend/playground_components/lib/src/enums/unread_entry.dart @@ -16,6 +16,7 @@ * limitations under the License. */ +/// Keys to track the unread status for. enum UnreadEntryEnum { result, graph, diff --git a/playground/frontend/playground_components_dev/lib/src/finder.dart b/playground/frontend/playground_components_dev/lib/src/finder.dart index 390c96daf255..c98bcda2142c 100644 --- a/playground/frontend/playground_components_dev/lib/src/finder.dart +++ b/playground/frontend/playground_components_dev/lib/src/finder.dart @@ -54,8 +54,6 @@ class _OrFinder extends ChainedFinder { @override Iterable filter(Iterable parentCandidates) { - final result = parentCandidates.toSet(); - result.addAll(another.evaluate()); - return result; + return {...parentCandidates, ...another.evaluate()}; } }