meta library
This library contains the definitions of annotations that provide additional semantic information about the program being annotated. These annotations are intended to be used by tools to provide a better user experience.
Installing
Use pub to install this package. Add the following to your pubspec.yaml
file.
dependencies:
meta: any
Then run pub install
.
For more information, see the meta package on pub.dartlang.org.
Properties
const deprecated #
An annotation used to mark a class, field, getter, setter, method, top-level variable, or top-level function as one that should no longer be used. Tools can use this annotation to provide a warning on references to the marked element.
const deprecated = const _Deprecated()
const override #
An annotation used to mark an instance member (method, field, getter or setter) as overriding an inherited class member. Tools can use this annotation to provide a warning if there is no overridden member.
const override = const _Override()