hasFlag static method
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
Implementation
static bool hasFlag(int leftFlags, int rightFlags) {
return leftFlags & rightFlags != 0;
}