StringableSerializerGenerator class abstract

Unifies the implementations for types that are able to be converted to/from a String using a toString() function and a parse constructor respectively.

Inheritance
Implementers

Constructors

StringableSerializerGenerator(String _toString, String _parse, {bool isNullable = false})
const

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

generateDeserializer(String expression) String
Generates code that deserializes an expression representing a String to an instance of the type.
override
generateSerializer(String expression) String
Generates code that serializes an expression representing an instance of the type to a String.
override
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