hasFactory property

  1. @override
bool get hasFactory
override

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

Implementation

@override
bool get hasFactory => metadata.any((ElementAnnotation m) => m.isFactory);