add @required when there's an assert not null (#9124)

* add @required when there's an assert not null

* address review comments
This commit is contained in:
Alexandre Ardhuin
2017-03-31 18:34:13 +02:00
committed by GitHub
parent 86e9fc1c68
commit 2de61a0853
70 changed files with 247 additions and 164 deletions

View File

@@ -4,6 +4,7 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart';
import 'test_async_utils.dart';
@@ -135,8 +136,8 @@ class TestGesture {
/// via the `dispatcher` argument.
static Future<TestGesture> down(Point downLocation, {
int pointer: 1,
HitTester hitTester,
EventDispatcher dispatcher
@required HitTester hitTester,
@required EventDispatcher dispatcher,
}) async {
assert(hitTester != null);
assert(dispatcher != null);