FreezedWhenOptions class Null safety

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.
read-onlyinherited
maybeWhen bool?
Whether to generate Union.maybeWhen
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
when bool?
Whether to generate Union.when
final
whenOrNull bool?
Whether to generate Union.whenOrNull
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
FreezedWhenOptions(when: true, whenOrNull: true, maybeWhen: true)
none → const FreezedWhenOptions
Disables the generation of all Union.when features
FreezedWhenOptions(when: false, whenOrNull: false, maybeWhen: false)