google/perf_api.dart

Profiler, Counters constructors marked const when they are not

Closed this issue · 0 comments

Counters cannot be const because the map inside it is not const.

Profiler cannot be const because Counters inside it is instantiated with new, but as explained above Counters itself cannot be const anyway.

Solution: drop the const