datac_annotations
library
Classes
-
DataClass
-
class annotation, used for model class.
@Params exclude represent list of methods that will not be included
in generating source.
for example
@DataClass(exclude = DataClassMethods.tostring) means that to string method
will not be generated.
ignore params to generate all methods
@DataClass()
-
DataTimeEquals
-
field annotation, used to add equality annotation to datetime field.
-
DataTimeEqualsEvaluator
-
-
Equals
-
Field annotation, used to add custom equality operator.
custom operator should extend EqualsEvaluator interface;
-
EqualsEvaluator<T>
-
interface to create custom equality operator.
-
Ignore
-
constructor annotation, used to ignore creating copy with method for specific constructor.
it useful when need to use factory constructor(fromJson).
@Ignore()
factory $Class$.fromJson(Map<String, dynamic> json) => ...
-
ListEquals
-
Field annotation, used to add equality operator to list field.
-
ListEqualsEvaluator<T>
-
-
MapEquals
-
Field annotation, used to add equality operator to list field.
-
MapEqualsEvaluator<K, V>
-
-
Qualifier
-
Constructor annotation, to add unique name to constructor.
it used when you have more than one constructor.
for example:
Enums
-
DataClassMethods
-
an enumerate represent all method available.
json - represent both (fromJson, toJson) methods.