meta_types library

Classes

ComputedField<T>
DataClass
DataClass is used to annotate classes to generate data class boilerplate if isInterface is true, no constructor will be generated.
DataClassField<T>
DataClassMixin
DataClassMixin is used to declare that this mixin is for data classes
EnumClass<E, T>
EnumClass can be used to annotate classes to generate enumeration class boilerplate
EnumClassField<T>
EnumClassMixin
EnumClassMixin is used to declare that this mixin is for enum classes
Field<T>
MetaTypeMixin
MetaTypeMixin is used to declare that this mixin is for any metatype
Nullable<T>
Nullable is used to represent nullable fields in other union and data classes. Use of nullable is required so one can set a field to null vial the data class's clone method.
SealedClass
SealedClass can be used to annotate classes to generate sealed class boilerplate
SealedClassField<T>
SealedClassMixin
SealedClassMixin is used to declare that this mixin is for sealed classes

Constants

computed → const String
computed is used to annotate fields that are computed and not set explicitly. computed can be used in sealed and data classes.
'computed'
required → const Required
Used to annotate a named parameter p in a method or function f. Indicates that every invocation of f must include an argument corresponding to p, despite the fact that p would otherwise be an optional parameter. [...]
const Required()

Functions

$jc(int hash, int value) int
For use by generated code in calculating hash codes. Do not use directly.
$jf(int hash) int
For use by generated code in calculating hash codes. Do not use directly.

Exceptions / Errors

NotGenerated