@@ -85,7 +85,8 @@ const _Checked checked = _Checked();
85
85
///
86
86
/// * the annotation is associated with anything other than a library, class,
87
87
/// method or getter, top-level getter or function, or
88
- /// * an invocation of a member that has this annotation is returned by a method,
88
+ /// * an invocation of a member that has this annotation is returned by a
89
+ /// function or getter that is not similarly annotated as method,
89
90
/// getter or function that is not similarly annotated as `doNotStore` , or
90
91
/// * an invocation of a member that has this annotation is assigned to a field
91
92
/// or top-level variable.
@@ -450,12 +451,16 @@ const _Reopen reopen = _Reopen();
450
451
/// * an invocation of a method or function does not include an argument
451
452
/// corresponding to a named parameter that has this annotation.
452
453
///
453
- /// **Deprecated:** This annotation is set to be deprecated and later
454
- /// removed in a future release of `package:meta` .
454
+ /// **Deprecated:** This annotation is set to be removed in a future release of
455
+ /// `package:meta` .
456
+ ///
455
457
/// In Dart 2.12 and later, use the built-in `required` keyword
456
458
/// to mark a named parameter as required.
457
459
/// To learn more about `required` , check out the documentation on
458
460
/// [named parameters] (https://dart.dev/language/functions#named-parameters).
461
+ @Deprecated (
462
+ 'In Dart 2.12 and later, use the built-in `required` keyword to mark a '
463
+ 'named parameter as required.' )
459
464
const Required required = Required ();
460
465
461
466
/// Annotation marking a class as not allowed as a super-type
@@ -553,21 +558,24 @@ class RecordUse {
553
558
/// Creates a [RecordUse] instance.
554
559
///
555
560
/// This annotation can be placed as an annotation on functions whose
556
- /// statically resolved calls should be registered together with the optional
557
- /// [metadata] information.
561
+ /// statically resolved calls should be registered
558
562
const RecordUse ();
559
563
}
560
564
561
565
/// Used to annotate a named parameter `p` in a method or function `f` .
562
566
///
563
567
/// See [required] for more details.
564
568
///
565
- /// **Deprecated:** This annotation is set to be deprecated and later
566
- /// removed in a future release of `package:meta` .
569
+ /// **Deprecated:** This annotation is set to be removed in a future release of
570
+ /// `package:meta` .
571
+ ///
567
572
/// In Dart 2.12 and later, use the built-in `required` keyword
568
573
/// to mark a named parameter as required.
569
574
/// To learn more about `required` , check out the documentation on
570
575
/// [named parameters] (https://dart.dev/language/functions#named-parameters).
576
+ @Deprecated (
577
+ 'In Dart 2.12 and later, use the built-in `required` keyword to mark a '
578
+ 'named parameter as required.' )
571
579
class Required {
572
580
/// A human-readable explanation of the reason why the annotated parameter is
573
581
/// required. For example, the annotation might look like:
0 commit comments