GetOffsetResult class Null safety
The result of the GetOffset command.
The offset is provided in logical pixels, which can be translated to device pixels via Window.devicePixelRatio.
Constructors
-
GetOffsetResult({double dx: 0.0,
double dy: 0.0} ) -
Creates a result with the offset defined by
dx
anddy
.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. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this message to a JSON map.
override
-
toString(
) → String -
Returns 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.