DataAnnotation class

The annotation used to derive an type according to body with the name with the typeParameters, mixing in the mixins, implementing the implementss, optionally generating the Object.== operator and Object.hashCode according to deriveEquality, an Object.runtimeType according to deriveRuntimeType, and an Object.toString according to deriveToString.

Constructors

DataAnnotation(Symbol name, List<TypeParam> typeParams, DataExpr body, {List<TypeD> mixin = const [], List<TypeD> implements = const [], bool deriveEquality = true, bool deriveRuntimeType = true, bool deriveToString = true, bool deriveCopyWith = true, bool deriveToJson = true, bool deriveFromJson = false, Methods methods = const Methods()})
const

Properties

body DataExpr
final
deriveCopyWith bool
final
deriveEquality bool
final
deriveFromJson bool
final
deriveRuntimeType bool
final
deriveToJson bool
final
deriveToString bool
final
hashCode int
The hash code for this object.
no setterinherited
implements List<TypeD>
final
methods Methods
final
mixin List<TypeD>
final
name Symbol
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeParams List<TypeParam>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited