StateChange class
Represents a state change event.
Constructors
- StateChange({required String id, required String providerName, required String newValue, required DateTime timestamp, required StateManagementType stateType, String? previousValue, String? description})
-
Creates a new state change record.
const
Properties
- description → String?
-
Optional description or metadata.
final
- formattedTimestamp → String
-
Formatted timestamp string.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier.
final
- newValue → String
-
New state value (string representation).
final
- previousValue → String?
-
Previous state value (string representation).
final
- providerName → String
-
Provider/state name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateType → StateManagementType
-
Type of state management.
final
- timestamp → DateTime
-
When the change occurred.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Convert to JSON string.
-
toMap(
) → Map< String, dynamic> - Convert to map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited