MultiFingerGesture class Null safety

Use MultiFingerGesture to disable / enable certain gestures Use MultiFingerGesture.all to enable all gestures, use MultiFingerGesture.none to disable all gestures

If you want mix gestures for example rotate and pinchZoom gestures then you have two options A.) add you own flags: MultiFingerGesture.rotate | MultiFingerGesture.pinchZoom B.) remove unnecessary flags from all: MultiFingerGesture.all & ~MultiFingerGesture.pinchMove

Constructors

MultiFingerGesture()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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

Static Methods

hasFlag(int leftFlags, int rightFlags) bool
Returns true if leftFlags has at least one member in rightFlags (intersection) for example leftFlags= MultiFingerGesture.pinchMove | MultiFingerGesture.rotate and rightFlags= MultiFingerGesture.rotate returns true because both have MultiFingerGesture.rotate flag

Constants

all → const int
pinchMove | pinchZoom | rotate
none → const int
0
pinchMove → const int
1 << 0
pinchZoom → const int
1 << 1
rotate → const int
1 << 2