[web_benchmarks] add ignore unnecessary_non_null_assertion for Scrollable.of (#2765)

This commit is contained in:
Chris Yang
2022-11-02 16:42:12 -07:00
committed by GitHub
parent bdc07b69d4
commit 47497f9824

View File

@ -39,6 +39,9 @@ class ScrollRecorder extends AppRecorder {
@override
Future<void> automate() async {
final ScrollableState scrollable =
// TODO(cyanglaz): Fix the unnecessary non null assertion when https://github.com/flutter/flutter/commit/37b72342b0ce86fbfc238a9d43e524608b89af3a is on stable,
// https://github.com/flutter/flutter/issues/114434
//ignore: unnecessary_non_null_assertion
Scrollable.of(find.byKey(textKey).evaluate().single)!;
await scrollable.position.animateTo(
30000,