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.
Constructors
- GetOffsetResult({double dx = 0.0, double dy = 0.0})
-
Creates a result with the offset defined by
dx
anddy
.const
Properties
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.