hasMustBeConst property

  1. @override
bool get hasMustBeConst
inherited

Whether the element has an annotation of the form @mustBeConst.

Implementation

@override
bool get hasMustBeConst {
  var metadata = this.metadata;
  for (var i = 0; i < metadata.length; i++) {
    var annotation = metadata[i];
    if (annotation.isMustBeConst) {
      return true;
    }
  }
  return false;
}