Flutter_driver nnbd (#74856)

This commit is contained in:
Dan Field
2021-01-27 23:55:26 -08:00
committed by GitHub
parent 650b240634
commit 3ece9c63d9
27 changed files with 291 additions and 380 deletions

View File

@@ -14,10 +14,10 @@ class DriverError extends Error {
final String message;
/// The error object that was caught and wrapped by this error object, if any.
final dynamic originalError;
final Object? originalError;
/// The stack trace that was caught and wrapped by this error object, if any.
final dynamic originalStackTrace;
final Object? originalStackTrace;
@override
String toString() {

View File

@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
/// Convenience methods for Flutter application driving on Fuchsia. Can
/// be run on either a host machine (making a remote connection to a Fuchsia
/// device), or on the target Fuchsia machine.
@@ -40,13 +38,13 @@ class _DummySshCommandRunner implements SshCommandRunner {
}
@override
String get sshConfigPath => null;
String get sshConfigPath => '';
@override
String get address => InternetAddress.loopbackIPv4.address;
@override
String get interface => null;
String get interface => '';
@override
Future<List<String>> run(String command) async {
@@ -72,8 +70,8 @@ class _DummySshCommandRunner implements SshCommandRunner {
Future<PortForwarder> _dummyPortForwardingFunction(
String address,
int remotePort, [
String interface = '',
String configFile,
String? interface,
String? configFile,
]) async {
return _DummyPortForwarder(remotePort, remotePort);
}