FlutterDriverExtension constructor

FlutterDriverExtension(
  1. DataHandler? _requestDataHandler,
  2. bool _silenceErrors,
  3. bool _enableTextEntryEmulation, {
  4. List<FinderExtension> finders = const <FinderExtension>[],
  5. List<CommandExtension> commands = const <CommandExtension>[],
})

Creates an object to manage a Flutter Driver connection.

Implementation

FlutterDriverExtension(
  this._requestDataHandler,
  this._silenceErrors,
  this._enableTextEntryEmulation, {
  List<FinderExtension> finders = const <FinderExtension>[],
  List<CommandExtension> commands = const <CommandExtension>[],
}) {
  if (_enableTextEntryEmulation) {
    registerTextInput();
  }

  for (final FinderExtension finder in finders) {
    _finderExtensions[finder.finderType] = finder;
  }

  for (final CommandExtension command in commands) {
    _commandExtensions[command.commandKind] = command;
  }
}