Freezed class
Flags a class as needing to be processed by Freezed and allows passing options.
Constructors
- Freezed({String? unionKey, FreezedUnionCase unionValueCase = FreezedUnionCase.none, String? fallbackUnion})
-
{@template freezed_annotation.freezed}
const
Properties
- fallbackUnion → String?
-
Determines which constructor should be used when there is no matching one
through constructor name or using FreezedUnionValue
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unionKey → String?
-
Determines what key should be used to de/serialize union types.
final
- unionValueCase → FreezedUnionCase
-
Determines how the value used to de/serialize union types would be
renamed.
final
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