CommandWithTarget class abstract

A Flutter Driver command aimed at an object to be located by finder.

Implementations must provide a concrete kind. If additional data is required beyond the finder the implementation may override serialize and add more keys to the returned map.

Inheritance
Implementers

Constructors

CommandWithTarget(SerializableFinder finder, {Duration? timeout})
Constructs this command given a finder.
CommandWithTarget.deserialize(Map<String, String> json, DeserializeFinderFactory finderFactory)
Deserializes this command from the value generated by serialize.

Properties

finder SerializableFinder
Locates the object or objects targeted by this command.
final
hashCode int
The hash code for this object.
no setterinherited
kind String
Identifies the type of the command object and of the handler.
no setterinherited
requiresRootWidgetAttached bool
Whether this command requires the widget tree to be initialized before the command may be run.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
The maximum amount of time to wait for the command to complete.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, String>
This method is meant to be overridden if data in addition to finder is serialized to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited