Fix analyzer issues for onReportTiming to frameTiming (#38840)

Filed: https://github.com/flutter/flutter/issues/38838
to track these usages.

This was introduced by: https://github.com/flutter/engine/pull/11041
This commit is contained in:
Kaushik Iska
2019-08-19 14:56:22 -07:00
committed by GitHub
parent ecf9748a77
commit d2bc74aa6d
5 changed files with 18 additions and 0 deletions

View File

@@ -272,9 +272,13 @@ class TestWindow implements Window {
}
@override
// use frameTimings. https://github.com/flutter/flutter/issues/38838
// ignore: deprecated_member_use
TimingsCallback get onReportTimings => _window.onReportTimings;
@override
set onReportTimings(TimingsCallback callback) {
// use frameTimings. https://github.com/flutter/flutter/issues/38838
// ignore: deprecated_member_use
_window.onReportTimings = callback;
}