From 3983815de5dfc628a284154f6db3432ec70e16ae Mon Sep 17 00:00:00 2001 From: Yegor Date: Thu, 7 Jun 2018 22:01:59 -0700 Subject: [PATCH] fix setTextEntryEmulation docs (#18298) --- packages/flutter_driver/lib/src/driver/driver.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/flutter_driver/lib/src/driver/driver.dart b/packages/flutter_driver/lib/src/driver/driver.dart index 58a473691b..9f8d2560ae 100644 --- a/packages/flutter_driver/lib/src/driver/driver.dart +++ b/packages/flutter_driver/lib/src/driver/driver.dart @@ -534,6 +534,8 @@ class FlutterDriver { await _sendCommand(new EnterText(text, timeout: timeout)); } + /// Configures text entry emulation. + /// /// If `enabled` is true, enables text entry emulation via [enterText]. If /// `enabled` is false, disables it. By default text entry emulation is /// enabled. @@ -544,8 +546,7 @@ class FlutterDriver { /// /// When enabled, the operating system's configured keyboard will not be /// invoked when the widget is focused, as the [SystemChannels.textInput] - /// channel will be mocked out. In disabled mode [enterText] can be used to - /// emulate text entry. + /// channel will be mocked out. Future setTextEntryEmulation({ @required bool enabled, Duration timeout }) async { assert(enabled != null); await _sendCommand(new SetTextEntryEmulation(enabled, timeout: timeout));