@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: ^0.12.1
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|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|