@visibleForTestingannotation for declarations that may be referenced only in the library or in a test.
@factoryto allow statics and methods returning
@protectedto include implemented interfaces (linter#252).
@optionalTypeArgsannotation for classes whose type arguments are to be treated as optional.
Requiredconstructor with a means to specify a reason to explain why a parameter is required.
@factoryannotation for methods that must either be abstract or must return a newly allocated object.
@literalannotation that indicates that any invocation of a constructor must use the keyword
constunless one or more of the arguments to the constructor is not a compile-time constant.
@protectedannotation for members that must only be called from instance members of subclasses.
@requiredannotation for optional parameters that should be treated as required.
@mustCallSuperannotation 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:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|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|
|1.0.1||Jun 27, 2016|
We analyzed this package on Jul 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Readme should inform others about your project, what it does, and how they can use it.
Package is getting outdated.
The package was released 99 weeks ago.
The description is too long.
Search engines will display only the first part of the description. Try to keep it under 180 characters.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=1.12.0 <2.0.0|