InteractiveFlag class Null safety

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.
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= InteractiveFlag.drag | InteractiveFlag.rotate and rightFlags= InteractiveFlag.rotate | InteractiveFlag.flingAnimation returns true because both have InteractiveFlag.rotate flag

Constants

all → const int
drag | flingAnimation | pinchMove | pinchZoom | doubleTapZoom | rotate
doubleTapZoom → const int
1 << 4
drag → const int
1 << 0
flingAnimation → const int
1 << 1
none → const int
0
pinchMove → const int
1 << 2
pinchZoom → const int
1 << 3
rotate → const int
1 << 5