add missing type parameter on methods (#22096)
This commit is contained in:
committed by
GitHub
parent
48fb726b01
commit
f62afdcf57
@@ -85,7 +85,7 @@ void testUsingContext(String description, dynamic testMethod(), {
|
||||
body: () {
|
||||
final String flutterRoot = getFlutterRoot();
|
||||
|
||||
return runZoned(() {
|
||||
return runZoned<Future<dynamic>>(() {
|
||||
try {
|
||||
return context.run<dynamic>(
|
||||
// Apply the overrides to the test context in the zone since their
|
||||
@@ -198,7 +198,7 @@ class MockDoctor extends Doctor {
|
||||
/// the Doctor.
|
||||
List<DoctorValidator> get validators {
|
||||
final List<DoctorValidator> superValidators = super.validators;
|
||||
return superValidators.map((DoctorValidator v) {
|
||||
return superValidators.map<DoctorValidator>((DoctorValidator v) {
|
||||
if (v is AndroidValidator) {
|
||||
return MockAndroidWorkflowValidator();
|
||||
}
|
||||
|
||||
@@ -303,8 +303,8 @@ class MockStdio extends Stdio {
|
||||
_stdin.add(utf8.encode('$line\n'));
|
||||
}
|
||||
|
||||
List<String> get writtenToStdout => _stdout.writes.map(_stdout.encoding.decode).toList();
|
||||
List<String> get writtenToStderr => _stderr.writes.map(_stderr.encoding.decode).toList();
|
||||
List<String> get writtenToStdout => _stdout.writes.map<String>(_stdout.encoding.decode).toList();
|
||||
List<String> get writtenToStderr => _stderr.writes.map<String>(_stderr.encoding.decode).toList();
|
||||
}
|
||||
|
||||
class MockPollingDeviceDiscovery extends PollingDeviceDiscovery {
|
||||
|
||||
Reference in New Issue
Block a user