GetOffsetResult class

The result of the GetOffset command.

The offset is provided in logical pixels, which can be translated to device pixels via dart:ui.FlutterView.devicePixelRatio.

Inheritance

Constructors

GetOffsetResult({double dx = 0.0, double dy = 0.0})
Creates a result with the offset defined by dx and dy.
const

Properties

dx double
The x component of the offset in logical pixels.
final
dy double
The y component of the offset in logical pixels.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this message to a JSON map.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) GetOffsetResult
Deserializes the result from JSON.