FrState top-level constant

Freezed const FrState

Recommended Freezed preset for page-local immutable state that should be easy to inspect in logs and debug tools.

This enables toJson() for snapshotting state, but keeps fromJson() disabled so ordinary UI state does not implicitly claim restore semantics.

Implementation

// ignore: constant_identifier_names
const FrState = Freezed(
  copyWith: true,
  equal: true,
  toStringOverride: true,
  fromJson: false,
  toJson: true,
);