makeFlags static method

int makeFlags({
  1. bool isAbstract = false,
  2. bool isConst = false,
  3. bool isFinal = false,
  4. bool isStatic = false,
  5. bool isPrivate = false,
  6. bool isDeprecated = false,
})

Implementation

static int makeFlags(
    {bool isAbstract = false,
    bool isConst = false,
    bool isFinal = false,
    bool isStatic = false,
    bool isPrivate = false,
    bool isDeprecated = false}) {
  var flags = 0;
  if (isAbstract) flags |= FLAG_ABSTRACT;
  if (isConst) flags |= FLAG_CONST;
  if (isFinal) flags |= FLAG_FINAL;
  if (isStatic) flags |= FLAG_STATIC;
  if (isPrivate) flags |= FLAG_PRIVATE;
  if (isDeprecated) flags |= FLAG_DEPRECATED;
  return flags;
}