GestureSettings class Null safety
Platform specific configuration for gesture behavior, such as touch slop.
These settings are provided via ViewConfiguration to each window, and should be favored for configuring gesture behavior over the framework constants.
A null
field indicates that the platform or view does not have a preference
and the fallback constants should be used instead.
Constructors
- GestureSettings({double? physicalTouchSlop, double? physicalDoubleTapSlop})
-
Create a new GestureSettings value.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- physicalDoubleTapSlop → double?
-
The number of physical pixels that the first and second tap of a double tap
can drift apart to still be recognized as a double tap.
final
- physicalTouchSlop → double?
-
The number of physical pixels a pointer is allowed to drift before it is
considered an intentional movement.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
copyWith(
{double? physicalTouchSlop, double? physicalDoubleTapSlop}) → GestureSettings -
Create a new
GestureSetting
s object from an existing value, overwriting all of the provided fields. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override