GetOffset class

A Flutter Driver command that returns the offsetType from the RenderObject identified by finder.

The requested offset is returned in logical pixels, which can be translated to device pixels via Window.devicePixelRatio.



GetOffset(SerializableFinder finder, OffsetType offsetType, {Duration timeout})
The finder looks for an element to get its rect.
GetOffset.deserialize(Map<String, String> json)
Deserializes this command from the value generated by serialize.


kind String
Identifies the type of the command object and of the handler.
read-only, override
offsetType OffsetType
The type of the requested offset.
finder SerializableFinder
Locates the object or objects targeted by this command.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
requiresRootWidgetAttached bool
Whether this command requires the widget tree to be initialized before the command may be run. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timeout Duration
The maximum amount of time to wait for the command to complete. [...]
final, inherited


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


operator ==(dynamic other) bool
The equality operator. [...]