hasVisibleForTemplate property

  1. @override
bool hasVisibleForTemplate
inherited

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

Implementation

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