meta 0.12.1

0.12.1

  • Fixed markdown in dartdocs.

0.12.0

  • Introduce @optionalTypeArgs annotation for classes whose type arguments are to be treated as optional.

0.11.0

  • Added new Required constructor with a means to specify a reason to explain why a parameter is required.

0.10.0

  • Introduce @factory annotation for methods that must either be abstract or must return a newly allocated object.

  • Introduce @literal annotation that indicates that any invocation of a constructor must use the keyword const unless one or more of the arguments to the constructor is not a compile-time constant.

0.9.0

  • Introduce @protected annotation for members that must only be called from instance members of subclasses.

  • Introduce @required annotation for optional parameters that should be treated as required.

  • Introduce @mustCallSuper annotation for methods that must be invoked by all overriding methods.

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  meta: "^0.12.1"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support pub. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:meta/meta.dart';

About

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.

Author

Email misc@dartlang.org Dart Team

Homepage

www.dartlang.org

Documentation

www.dartdocs.org/documentation/meta/0.12.1/

Uploader

dgrove@google.com
jmesserly@google.com
sigmund@google.com
pquitslund@google.com
brianwilkerson@google.com

Share