WidgetPosition class

The position of the widget as we captured it on device

Annotations
  • @freezed

Constructors

WidgetPosition({required double x, required double y, @Default(0) double capturedDeviceWidth, @Default(0) double capturedDeviceHeight, @Default(Orientation.portrait) Orientation orientation, double? yDeviation, double? xDeviation, @JsonKey(includeToJson: false, includeFromJson: false) @Default(false) bool active})
const
factory
WidgetPosition.empty()
factory
WidgetPosition.fromJson(Map<String, dynamic> json)
factory

Properties

active bool
no setterinherited
capturedDeviceHeight double
no setterinherited
capturedDeviceWidth double
no setterinherited
copyWith → $WidgetPositionCopyWith<WidgetPosition>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
orientation Orientation
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x double
no setterinherited
xDeviation double?
no setterinherited
y double
no setterinherited
yDeviation double?
no setterinherited

Methods

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

Operators

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