sort_constructors_first (#22575)

This commit is contained in:
Alexandre Ardhuin
2018-10-04 07:28:07 +02:00
committed by GitHub
parent a68b03e9ce
commit 2ea1d81cdc
74 changed files with 449 additions and 444 deletions

View File

@@ -41,14 +41,14 @@ class EnterText extends Command {
/// Creates a command that enters text into the currently focused widget.
EnterText(this.text, { Duration timeout }) : super(timeout: timeout);
/// The text extracted by the [GetText] command.
final String text;
/// Deserializes this command from the value generated by [serialize].
EnterText.deserialize(Map<String, dynamic> json)
: text = json['text'],
super.deserialize(json);
/// The text extracted by the [GetText] command.
final String text;
@override
final String kind = 'enter_text';
@@ -77,14 +77,14 @@ class SetTextEntryEmulation extends Command {
/// Creates a command that enables and disables text entry emulation.
SetTextEntryEmulation(this.enabled, { Duration timeout }) : super(timeout: timeout);
/// Whether text entry emulation should be enabled.
final bool enabled;
/// Deserializes this command from the value generated by [serialize].
SetTextEntryEmulation.deserialize(Map<String, dynamic> json)
: enabled = json['enabled'] == 'true',
super.deserialize(json);
/// Whether text entry emulation should be enabled.
final bool enabled;
@override
final String kind = 'set_text_entry_emulation';

View File

@@ -770,6 +770,9 @@ class FlutterDriver {
/// Encapsulates connection information to an instance of a Flutter application.
@visibleForTesting
class VMServiceClientConnection {
/// Creates an instance of this class given a [client] and a [peer].
VMServiceClientConnection(this.client, this.peer);
/// Use this for structured access to the VM service's public APIs.
final VMServiceClient client;
@@ -778,9 +781,6 @@ class VMServiceClientConnection {
/// This object allows reaching into private VM service APIs. Use with
/// caution.
final rpc.Peer peer;
/// Creates an instance of this class given a [client] and a [peer].
VMServiceClientConnection(this.client, this.peer);
}
/// A function that connects to a Dart VM service given the [url].

View File

@@ -92,8 +92,6 @@ typedef FinderConstructor = Finder Function(SerializableFinder finder);
/// calling [enableFlutterDriverExtension].
@visibleForTesting
class FlutterDriverExtension {
final TestTextInput _testTextInput = TestTextInput();
/// Creates an object to manage a Flutter Driver connection.
FlutterDriverExtension(this._requestDataHandler, this._silenceErrors) {
_testTextInput.register();
@@ -143,6 +141,8 @@ class FlutterDriverExtension {
});
}
final TestTextInput _testTextInput = TestTextInput();
final DataHandler _requestDataHandler;
final bool _silenceErrors;