SnapToBarConfig class
SnapToBarConfig determines the way interactions outside the boundary of the bar are handled by dictating how the interactions are interpreted.
See also:
Constructors
- SnapToBarConfig.new({bool snapToWidthOnDrag = true, bool snapToHeightOnDrag = false, bool snapToWidthOnTap = true, bool snapToHeightOnTap = false, bool snapToWidthOnDoubleTap = true, bool snapToHeightOnDoubleTap = false, SnapToBarBehaviour snapToBarBehaviour = SnapToBarBehaviour.snapToNearest})
-
SnapToBarConfig determines the way interactions outside the boundary of the bar are handled by
dictating how the interactions are interpreted.
const
- SnapToBarConfig.disabled()
-
SnapToBarConfig determines the way interactions outside the boundary of the bar are handled by
dictating how the interactions are interpreted.
const
- SnapToBarConfig.forAll({required bool snapToWidth, required bool snapToHeight, SnapToBarBehaviour snapToBarBehaviour = SnapToBarBehaviour.snapToNearest})
-
SnapToBarConfig determines the way interactions outside the boundary of the bar are handled by
dictating how the interactions are interpreted.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapToBarBehaviour → SnapToBarBehaviour
-
final
- snapToHeightOnDoubleTap → bool
-
final
- snapToHeightOnDrag → bool
-
final
- snapToHeightOnTap → bool
-
final
- snapToWidthOnDoubleTap → bool
-
final
- snapToWidthOnDrag → bool
-
final
- snapToWidthOnTap → bool
-
final
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
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