Whether the element has an annotation of the form @required.
@required
@override bool get hasRequired => metadata.any((ElementAnnotation m) => m.isRequired);