PrimitiveMapper class
Maps Primitive to Dart types.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Properties
-
defaults
→ Map<
FieldPrimitive, Code> -
The default value of each primitive, as Dart code
final
Static Methods
-
getDartDefaultFor(
FieldPrimitive primitive, List< SchemaFieldType> typeArguments, String typeId, [bool anonymous = false]) → Tuple<Code, bool> - Returns the default value as Dart code for a primitive type. It returns the Dart code and a boolean that indicates if the type is a union
Constants
-
mapper
→ const Map<
FieldPrimitive, String> -
typeReferences
→ const Map<
FieldPrimitive, Reference> - Contains a mapper between Primitive and Reference