InteractiveFlag class

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 you own flags: InteractiveFlag.drag | InteractiveFlag.rotate B.) remove unnecessary flags from all: InteractiveFlag.all & ~InteractiveFlag.flingAnimation & ~InteractiveFlag.pinchMove & ~InteractiveFlag.pinchZoom & ~InteractiveFlag.doubleTapZoom

Constructors

InteractiveFlag()

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

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

Constants

all → const int
doubleTapZoom → const int
drag → const int
flingAnimation → const int
none → const int
pinchMove → const int
pinchZoom → const int
rotate → const int