Prefer void to null (#22977)
* Future<void> main * Future<void>.delayed * prefer_void_to_Null * address review comments
This commit is contained in:
committed by
GitHub
parent
5efe095895
commit
0fb84e96c7
@@ -26,7 +26,7 @@ void main() {
|
||||
for (String path in paths) {
|
||||
await driver.waitUntilNoTransientCallbacks();
|
||||
// TBD: when #11021 has been resolved, this shouldn't be necessary.
|
||||
await new Future<Null>.delayed(const Duration(milliseconds: 500));
|
||||
await new Future<void>.delayed(const Duration(milliseconds: 500));
|
||||
final List<int> pixels = await driver.screenshot();
|
||||
final File file = new File(path);
|
||||
await file.writeAsBytes(pixels);
|
||||
|
||||
@@ -22,12 +22,12 @@ void main() {
|
||||
}
|
||||
}
|
||||
|
||||
Future<Null> scrollUpOneEntry() async {
|
||||
Future<void> scrollUpOneEntry() async {
|
||||
await tester.dragFrom(const Offset(200.0, 200.0), const Offset(0.0, -88.00));
|
||||
await tester.pumpAndSettle();
|
||||
}
|
||||
|
||||
Future<Null> tapEntry(String title) async {
|
||||
Future<void> tapEntry(String title) async {
|
||||
await tester.tap(find.text(title));
|
||||
await tester.pumpAndSettle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user