hasFlag static method

bool hasFlag(
  1. int leftFlags,
  2. int rightFlags
)

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;
}