diff --git a/flutter/lib/benchmark/benchmark.dart b/flutter/lib/benchmark/benchmark.dart index b3e423c6c..8cd9dc494 100644 --- a/flutter/lib/benchmark/benchmark.dart +++ b/flutter/lib/benchmark/benchmark.dart @@ -209,8 +209,10 @@ class BenchmarkSet { void applyOptionStateMap(Map inputMap) { for (final entry in inputMap.entries) { + // FIXME throws on a stored option id missing from the current config. optionSets[optionMap[entry.key]!].setOptionTo(entry.key, entry.value); } + applyOptions(); } void applyOptions() { @@ -234,6 +236,7 @@ class BenchmarkSet { class BenchmarkOptionSet { final pb.OptionSet config; late final Map options; + // FIXME stale after construction; min/max_selected check a wrong count. late int selected; BenchmarkOptionSet({required this.config}) {