Serializable class abstract

This is an interface that classes can implement or inherit to handle custom serialization and deserialization. Classes that implement Serializable must provide a factory constructor that takes a list of final properties. The final properties are the properties that are not transient and are required to create the object. The transient properties are set separately after the object is created.

Constructors

Serializable()
Serializable.withFinalProperties(List finalProperties)
Implementors of Serializable must provide a factory constructor but since static methods are not allowed in interfaces and are not inherited by subclasses, this is here as documentation.
factory

Properties

finalProperties List
finalProperties returns a list of properties that are required to create the object. These properties are serialized and deserialized with the object. By separating final properties from transient properties, objects with circular references can be serialized and deserialized.
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
transientProperties List
transientProperties returns a list of properties that are not required to create the object. These properties are set after the object is created.
getter/setter pair

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