@visibleForTesting
annotation for declarations that may be referenced only in the library or in a test.@factory
to allow statics and methods returning null
.@protected
to include implemented interfaces (linter#252).@optionalTypeArgs
annotation for classes whose type arguments are to be treated as optional.Required
constructor with a means to specify a reason to explain why a parameter is required.@factory
annotation for methods that must either be abstract or
must return a newly allocated object.@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.@protected
annotation for members that must only be called from
instance members of subclasses.@required
annotation for optional parameters that should be treated
as required.@mustCallSuper
annotation for methods that must be invoked by all
overriding methods.Add this to your package's pubspec.yaml file:
dependencies:
meta: ^1.0.2
You can install packages from the command line:
with pub:
$ pub get
Alternatively, your editor might support pub get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:meta/meta.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
1.1.7 | Jan 3, 2019 |
|
|
1.1.6 | Jul 18, 2018 |
|
|
1.1.5 | May 3, 2018 |
|
|
1.1.2 | Sep 28, 2017 |
|
|
1.1.1 | Jul 19, 2017 |
|
|
1.1.0 | Jul 10, 2017 |
|
|
1.0.5 | Mar 31, 2017 |
|
|
1.0.4 | Sep 20, 2016 |
|
|
1.0.3 | Sep 14, 2016 |
|
|
1.0.2 | Aug 15, 2016 |
|
|
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
99
|
Health:
Code health derived from static analysis.
[more]
|
--
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
--
|
Overall:
Weighted score of the above.
[more]
|
50
|
This package version is not analyzed, because it is more than two years old. Check the latest stable version for its analysis.
The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.
Running dartdoc
failed. (-10 points)
Make sure dartdoc
runs without any issues.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=1.12.0 <2.0.0 |