TypeHelperContext class abstract

Context information provided in calls to TypeHelper.serialize and TypeHelper.deserialize.

Implementers

Constructors

TypeHelperContext()

Properties

classElement → ClassElement
The annotated class that code is being generated for.
no setter
fieldElement → FieldElement
The field that code is being generated for.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addMember(String memberContent) → void
Adds memberContent to the set of generated, top-level members.
deserialize(DartType fieldType, String expression) Object?
expression may be just the name of the field or it may an expression representing the serialization of a value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(DartType fieldType, String expression) Object?
expression may be just the name of the field or it may an expression representing the serialization of a value.
toString() String
A string representation of this object.
inherited

Operators

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