PanTilt class

Annotations
  • @JsonSerializable.new()

Constructors

PanTilt({required String rawX, required String rawY, String? space})
PanTilt.fromDouble({double x = 0.1, double y = 0.1})
assumes can tilt between values 0 and 1 (can be confirmed through the config)
factory
PanTilt.fromInt({int x = 1000, int y = 1000})
helper to allow an int for 1 - 10000 in place of the double
factory
PanTilt.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
rawX String
final
rawY String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
space String?
final
x double
no setter
y double
no setter

Methods

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

Operators

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