ObjectLayoutAssistSettings class Null safety

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.
read-onlyinherited
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.
read-onlyinherited

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 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

Constants

defaultPositionalEnterDistance → const double
The default value for positionalEnterDistance.
1
defaultPositionalExitDistance → const double
The default value for positionalExitDistance.
10
defaultRotationalEnterAngle → const double
The default value for rotationalEnterAngle.
pi / 80
defaultRotationalExitAngle → const double
The default value for rotationalExitAngle.
pi / 16