There is a new @deprecated annotation. Sync with Sam Rawlins who created the feature. Also, some auto-generated text related to this annotation was added in https://github.com/dart-lang/site-www/pull/6852. Take a look for more details.