hasSealed property

  1. @override
bool get hasSealed
inherited

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

Implementation

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