isStatic property

  1. @override
bool isStatic

Whether the element is a static variable, as per section 8 of the Dart Language Specification:

A static variable is a variable that is not associated with a particular instance, but rather with an entire library or class. Static variables include library variables and class variables. Class variables are variables whose declaration is immediately nested inside a class declaration and includes the modifier static. A library variable is implicitly static.


bool get isStatic => hasModifier(Modifier.STATIC);
void isStatic=(bool isStatic)


set isStatic(bool isStatic) {
  setModifier(Modifier.STATIC, isStatic);