hasFactory property
Return true
if this element has an annotation of the form @factory
.
Implementation
@override
bool get hasFactory {
final metadata = this.metadata;
for (var i = 0; i < metadata.length; i++) {
var annotation = metadata[i];
if (annotation.isFactory) {
return true;
}
}
return false;
}