SaveChangeSet class

Records what changed in a save boundary.

Constructors

SaveChangeSet({List<String> added = const [], List<String> updated = const [], List<String> removed = const [], String? note})
Creates a change set with optional details.
SaveChangeSet.fromJson(Map<String, dynamic> json)
Parses a change set from a JSON-safe map.
factory
SaveChangeSet.migration()
Marks a migration-driven change set.
factory
SaveChangeSet.none()
Explicitly indicates no meaningful changes.
factory
SaveChangeSet.recovery()
Marks a recovery-driven change set.
factory
SaveChangeSet.unknown({String? note})
Indicates the change set is unknown but explicit.
factory

Properties

added List<String>
Added keys in this save.
final
hashCode int
The hash code for this object.
no setterinherited
note String?
Optional free-form note about the change set.
final
removed List<String>
Removed keys in this save.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updated List<String>
Updated keys in this save.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes the change set to a JSON-safe map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited