HiddenEvent class
A cached event that visible reads hide, paired with the cache state that explains why it is hidden.
reasons is never empty. superseded is reported only when the event is
neither deleted nor expired, because those two answer the question better:
a deleted or expired event never wins its conflict domain, so it is always
non-current as well.
Constructors
-
HiddenEvent({required Nip01Event event, required EventCacheStateRecord state, required Set<
HiddenEventReason> reasons}) -
const
Properties
- deletedByEventId → String?
-
Id of the NIP-09 event that deleted this one, when isDeleted.
no setter
- event → Nip01Event
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDeleted → bool
-
no setter
- isExpired → bool
-
no setter
- isSuperseded → bool
-
no setter
-
reasons
→ Set<
HiddenEventReason> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → EventCacheStateRecord
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited