-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do both @Deprecated and @deprecated metadata annotations exist ? #5164
Comments
Hey @marcmcd, thanks for opening an issue!
As for As for Does that provide the information you are looking for? So With this information, do you think we could improve the page or make it clearer? Should we link to the API docs for each annotation on the page? Let us know. Thanks again for question and the details! |
Hi Parker, Thanks for the quick response.
I found that reference to
How about adding the text in bold italics below ? You can leave out the --------------------------------------------------------- 8< --------------------------------------------------------- Use metadata to give additional information about your code. A metadata annotation begins with Three annotations are available to all Dart code:
class Television {
/// Use [turnOn] to turn the power on instead.
@Deprecated('Use turnOn instead')
void activate() {
turnOn();
}
The
For example:
You can define your own metadata annotations. Here’s an example of defining a
class Todo {
final String who;
final String what;
And here’s an example of using that
@Todo('Dash', 'Implement this function')
void doSomething() {
print('Do something');
}
Metadata can appear before a library, class, typedef, type parameter, constructor,
--------------------------------------------------------- 8< --------------------------------------------------------- Regards, |
Hi Parker, |
Thank you! 🫡 |
Page URL
https://dart.dev/language/metadata.html
Page source
https://github.com/dart-lang/site-www/tree/main/src/language/metadata.md
Describe the problem
The text "Three annotations are available to all Dart code:
@Deprecated
,@deprecated
, and@override
."refers to the
@Deprecated
and@deprecated
annotations. Do both of these exist?Other web Dart metadata references do not
mention the
@Deprecated
annotation but do mention the@required
or the@proxy
annotations asbeing available to all Dart code.
Expected fix
Replace "Three annotations are available to all Dart code:
@Deprecated
,@deprecated
, and@override
."with"Three annotations are available to all Dart code:
@deprecated
,@override
, and@required
."or
Replace "Three annotations are available to all Dart code:
@Deprecated
,@deprecated
, and@override
."with "Three annotations are available to all Dart code:
@deprecated
,@override
, and@proxy
."Then replace all occurrences of
@Deprecated
with@deprecated
in the remaining text.Additional context
No response
The text was updated successfully, but these errors were encountered: