hasFlag method

bool hasFlag(
  1. int flag
)

Implementation

bool hasFlag(int flag) => (flags & flag) == flag;