Unverified Commit 68138bc4 authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Fix typing to unblock pub roll (#144968)

The pub roller is blocked on

```
  error � The argument type 'JSArray<JSAny?>' can't be assigned to the parameter type 'JSArray<JSNumber>'.  � dev/benchmarks/macrobenchmarks/lib/web_benchmarks.dart:309:22 � argument_type_not_assignable
```

See https://github.com/flutter/flutter/pull/144852.

The fixes the typing so the next pub roll can (hopefully) succeed.
parent 237b8981
...@@ -306,7 +306,7 @@ class TimeseriesVisualization { ...@@ -306,7 +306,7 @@ class TimeseriesVisualization {
drawLine(0, _normalized(_stats.average), _screenWidth, _normalized(_stats.average)); drawLine(0, _normalized(_stats.average), _screenWidth, _normalized(_stats.average));
// Draw a horizontal dashed line corresponding to the outlier cut off. // Draw a horizontal dashed line corresponding to the outlier cut off.
_ctx.setLineDash(<JSAny?>[5.toJS, 5.toJS].toJS); _ctx.setLineDash(<JSNumber>[5.toJS, 5.toJS].toJS);
drawLine(0, _normalized(_stats.outlierCutOff), _screenWidth, _normalized(_stats.outlierCutOff)); drawLine(0, _normalized(_stats.outlierCutOff), _screenWidth, _normalized(_stats.outlierCutOff));
// Draw a light red band that shows the noise (1 stddev in each direction). // Draw a light red band that shows the noise (1 stddev in each direction).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment