RotationSnappingOptions class

Snapping options for rotating sprites.

Constructors

RotationSnappingOptions({bool enabled, List<double> snapToAngles, double threshold})
Creates new RotationSnappingOptions.

Properties

enabled bool
Whether sprites should snap to specific orientations during rotation interactions. This switch enables or disables rotation snapping. [...]
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
snapToAngles List<double>
Enabled snapping angles in degrees for rotating a sprite. The rotation angle is defined clockwise. [...]
final
threshold double
This threshold defines the arc length of a rotation gesture where snapping at a snap angle occurs. It is measured in points. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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