ObjectLayoutAssistSettings class

Represents settings that control the behavior of layout assist for objects.

Layout assist helps in arranging objects by snapping them to common arrangements (such as vertical and horizontal centers, right angle rotations, etc...).

Annotations

Constructors

ObjectLayoutAssistSettings({bool enabled = true, HapticFeedbackSettings hapticFeedback = HapticFeedbackSettings.medium, double positionalEnterDistance = defaultPositionalEnterDistance, double positionalExitDistance = defaultPositionalExitDistance, double rotationalEnterAngle = defaultRotationalEnterAngle, double rotationalExitAngle = defaultRotationalExitAngle})
Creates an ObjectLayoutAssistSettings.
const

Properties

enabled bool
Have layout assist enabled or not.
final
hapticFeedback HapticFeedbackSettings
What kind of haptic feedback to trigger when the object snaps to an arrangement.
final
hashCode int
The hash code for this object.
no setterinherited
positionalEnterDistance double
The distance from center to detect that the object reached the assist area.
final
positionalExitDistance double
The distance from center to detect that the object exited the assist area.
final
rotationalEnterAngle double
The angle to detect that the object entered the rotational assist range.
final
rotationalExitAngle double
The angle to detect that the object exited the rotational assist range.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? enabled, HapticFeedbackSettings? hapticFeedback, double? positionalEnterDistance, double? positionalExitDistance, double? rotationalEnterAngle, double? rotationalExitAngle}) ObjectLayoutAssistSettings
Creates a copy of this but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultPositionalEnterDistance → const double
The default value for positionalEnterDistance.
defaultPositionalExitDistance → const double
The default value for positionalExitDistance.
defaultRotationalEnterAngle → const double
The default value for rotationalEnterAngle.
defaultRotationalExitAngle → const double
The default value for rotationalExitAngle.