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
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
ifleftFlags
has at least one member inrightFlags
(intersection) for exampleleftFlags
= InteractiveFlag.drag | InteractiveFlag.rotate andrightFlags
= InteractiveFlag.rotate | InteractiveFlag.flingAnimation returns true because both have InteractiveFlag.rotate flag