InteractiveFlag class abstract

Use InteractiveFlag to disable / enable certain events Use InteractiveFlag.all to enable all events, use InteractiveFlag.none to disable all events

If you want mix interactions for example drag and rotate interactions then you have two options: a. Add your own flags: InteractiveFlag.drag | InteractiveFlag.rotate b. Remove unnecessary flags from all: InteractiveFlag.all & ~InteractiveFlag.flingAnimation & ~InteractiveFlag.pinchMove & ~InteractiveFlag.pinchZoom & ~InteractiveFlag.doubleTapZoom

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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

Static Methods

hasDoubleTapDragZoom(int flags) bool
True if the doubleTapDragZoom interactive flag is enabled.
hasDoubleTapZoom(int flags) bool
True if the doubleTapZoom interactive flag is enabled.
hasDrag(int flags) bool
True if the drag interactive flag is enabled.
hasFlag(int leftFlags, int rightFlags) bool
Returns true if leftFlags has at least one member in rightFlags (intersection) for example leftFlags= InteractiveFlag.drag | InteractiveFlag.rotate and rightFlags= InteractiveFlag.rotate | InteractiveFlag.flingAnimation returns true because both have InteractiveFlag.rotate flag
hasFlingAnimation(int flags) bool
True if the flingAnimation interactive flag is enabled.
hasMultiFinger(int flags) bool
True if any multi-finger gesture flags are enabled.
hasPinchMove(int flags) bool
True if the pinchMove interactive flag is enabled.
hasPinchZoom(int flags) bool
True if the pinchZoom interactive flag is enabled.
hasRotate(int flags) bool
True if the rotate interactive flag is enabled.
hasScrollWheelZoom(int flags) bool
True if the scrollWheelZoom interactive flag is enabled.

Constants

all → const int
doubleTapDragZoom → const int
Enable zooming with a single-finger double-tap-drag gesture
doubleTapZoom → const int
Enable zooming with a single-finger double tap gesture
drag → const int
Enable panning with a single finger or cursor
flingAnimation → const int
Enable fling animation after panning if velocity is great enough.
none → const int
pinchMove → const int
Enable panning with multiple fingers
pinchZoom → const int
Enable zooming with a multi-finger pinch gesture
rotate → const int
Enable rotation with two-finger twist gesture
scrollWheelZoom → const int
Enable zooming with a mouse scroll wheel