Data class

Marks the enum value as DataClass.

This generates a class similar to Data Classes in Kotlin.

Annotations

Constructors

Data({required List<DataField> fields})
const

Properties

fields List<DataField>
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