flutter_driver_extension library Null safety

This library provides a Dart VM service extension that is required for tests that use package:flutter_driver to drive applications from a separate process, similar to Selenium (web), Espresso (Android) and UI Automation (iOS).

The extension must be installed in the same process (isolate) with your application.

To enable the extension call enableFlutterDriverExtension early in your program, prior to running your application, e.g. before you call runApp.

Example:

import 'package:flutter/material.dart';
import 'package:flutter_driver/driver_extension.dart';

main() {
  enableFlutterDriverExtension();
  runApp(new ExampleApp());
}

Classes

CommandExtension
Used to expand the new Command. [...]
FinderExtension
Used to expand the new Finder.
FlutterDriverExtension
The class that manages communication between a Flutter Driver test and the application being remote-controlled, on the application side. [...]

Mixins

CommandHandlerFactory
A factory for Command handlers.
CreateFinderFactory
A factory which creates Finders from SerializableFinders.
DeserializeCommandFactory
A factory for deserializing Commands.
DeserializeFinderFactory
A factory for deserializing Finders.

Functions

enableFlutterDriverExtension({DataHandler? handler, bool silenceErrors: false, bool enableTextEntryEmulation: true, List<FinderExtension>? finders, List<CommandExtension>? commands}) → void
Enables Flutter Driver VM service extension. [...]

Typedefs

CommandDeserializerCallback(Map<String, String> params) Command
Signature for functions that deserialize a JSON map to a command object.
CommandHandlerCallback(Command c) Future<Result?>
Signature for functions that handle a command and return a result.
DataHandler(String? message) Future<String>
Signature for the handler passed to enableFlutterDriverExtension. [...]