Record class

An ProductType that contains every TypeD from the body named respectively as the keys in the body.

Optionally the constructor can be configured with deriveMode.

Inheritance

Constructors

Record(Map<Symbol, TypeD> body, {RecordConstructorDeriveMode deriveMode = RecordConstructorDeriveMode.both})
const

Properties

body Map<Symbol, TypeD>
final
deriveMode RecordConstructorDeriveMode
final
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