FreezedWhenOptions class
Options for enabling/disabling specific Union.when
features;
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake, createToJson: false, anyMap: true)
Constructors
- FreezedWhenOptions({bool? when, bool? whenOrNull, bool? maybeWhen})
-
Options for enabling/disabling specific
Union.when
features;const - FreezedWhenOptions.fromJson(Map json)
-
Decode a FreezedWhenOptions from a build.yaml
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maybeWhen → bool?
-
Whether to generate
Union.maybeWhen
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- when → bool?
-
Whether to generate
Union.when
final - whenOrNull → bool?
-
Whether to generate
Union.whenOrNull
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
Constants
- all → const FreezedWhenOptions
-
Enables the generation of all
Union.when
features - none → const FreezedWhenOptions
-
Disables the generation of all
Union.when
features