FlutterDriverExtension constructor
- DataHandler? _requestDataHandler,
- bool _silenceErrors,
- bool _enableTextEntryEmulation, {
- List<
FinderExtension> finders = const <FinderExtension>[], - 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;
}
}