Freezed constructor

const Freezed({
  1. String? unionKey,
  2. FreezedUnionCase? unionValueCase,
  3. String? fallbackUnion,
  4. bool? copyWith,
  5. bool? equal,
  6. bool? toStringOverride,
  7. bool? fromJson,
  8. bool? toJson,
  9. FreezedMapOptions? map,
  10. FreezedWhenOptions? when,
  11. bool? makeCollectionsUnmodifiable,
  12. bool addImplicitFinal = true,
  13. bool genericArgumentFactories = false,
})

Flags a class as needing to be processed by Freezed and allows passing options.

Implementation

const Freezed({
  this.unionKey,
  this.unionValueCase,
  this.fallbackUnion,
  this.copyWith,
  this.equal,
  this.toStringOverride,
  this.fromJson,
  this.toJson,
  this.map,
  this.when,
  this.makeCollectionsUnmodifiable,
  this.addImplicitFinal = true,
  this.genericArgumentFactories = false,
});