hasJS property

  1. @override
bool hasJS
inherited

Whether the element has an annotation of the form @JS(..).

Implementation

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