Enable strict-inference (#135043)
Avoids that dynamic accidentally sneaks in, see https://dart.dev/tools/analysis#enabling-additional-type-checks
This commit is contained in:
committed by
GitHub
parent
96a4ae9dc5
commit
b0a90aee17
@@ -16,7 +16,7 @@ const String _activityName = 'MainActivity';
|
||||
const int _numberOfIterations = 10;
|
||||
|
||||
Future<void> _withApkInstall(
|
||||
String apkPath, String bundleName, Function(AndroidDevice) body) async {
|
||||
String apkPath, String bundleName, Future<void> Function(AndroidDevice) body) async {
|
||||
final DeviceDiscovery devices = DeviceDiscovery();
|
||||
final AndroidDevice device = await devices.workingDevice as AndroidDevice;
|
||||
await device.unlock();
|
||||
|
||||
@@ -42,7 +42,7 @@ Future<void> runTasks(
|
||||
List<String>? taskArgs,
|
||||
bool useEmulator = false,
|
||||
@visibleForTesting Map<String, String>? isolateParams,
|
||||
@visibleForTesting Function(String) print = print,
|
||||
@visibleForTesting void Function(String) print = print,
|
||||
@visibleForTesting List<String>? logs,
|
||||
}) async {
|
||||
for (final String taskName in taskNames) {
|
||||
|
||||
Reference in New Issue
Block a user