Mention that @redeclare
comes from meta
library on the 'Extension types' page
#5874
Labels
a.language
Relates to the Dart language tour
e1-hours
Can complete in < 8 hours of normal, not dedicated, work
from.page-issue
Reported in a reader-filed concern
p2-medium
Necessary but not urgent concern. Resolve when possible.
st.triage.ltw
Indicates Lead Tech Writer has triaged
Page URL
https://dart.dev/language/extension-types#redeclare
Page source
https://github.com/dart-lang/site-www/tree/main/src/content/language/extension-types.md
Describe the problem
The documentation talks about a
@redeclare
annotation, but unlike@override
, the@redeclare
annotation is not defined in the dart language itself. Instead it is defined in a separate package called meta, but this isn't mentioned anywhere in the documentation, so if someone wants to use a@redeclare
annotation it is unclear how to do so.Expected fix
Mention that using
@redeclare
requires you to import the meta library.Additional context
No response
I would like to fix this problem.
The text was updated successfully, but these errors were encountered: