diff --git a/web/_packages/web_startup_analyzer/lib/src/frame_analyzer.dart b/web/_packages/web_startup_analyzer/lib/src/frame_analyzer.dart index 62e3dff4d..80635d124 100644 --- a/web/_packages/web_startup_analyzer/lib/src/frame_analyzer.dart +++ b/web/_packages/web_startup_analyzer/lib/src/frame_analyzer.dart @@ -18,16 +18,16 @@ class FrameAnalyzer { FrameAnalyzer(this._binding, {this.additionalFrames = 10}) : _remainingFrames = additionalFrames; - Future captureAdditionalFrames() { + Future captureAdditionalFrames() { _binding.addTimingsCallback(_timingsCallback); return _onDone.future; } - _reportFrame(FrameTiming frameTiming) { + void _reportFrame(FrameTiming frameTiming) { additionalFrameTimes.add(frameTiming.totalSpan.inMilliseconds); } - _timingsCallback(timings) { + void _timingsCallback(List timings) { int i = 0; while (_remainingFrames > 0 && i < timings.length) { _reportFrame(timings[i]); diff --git a/web/_packages/web_startup_analyzer/lib/src/web_startup_analyzer_io.dart b/web/_packages/web_startup_analyzer/lib/src/web_startup_analyzer_io.dart index 287ecfda2..51461ed5e 100644 --- a/web/_packages/web_startup_analyzer/lib/src/web_startup_analyzer_io.dart +++ b/web/_packages/web_startup_analyzer/lib/src/web_startup_analyzer_io.dart @@ -9,6 +9,7 @@ import 'web_startup_analyzer_base.dart'; class WebStartupAnalyzer extends WebStartupAnalyzerBase { WebStartupAnalyzer({int additionalFrameCount = 0}); + @override List? get additionalFrames => []; @override