PreferencesManager class

Preferences manager

Future enhancement: Store/retrieve peer preferences using DHT or GossipSub. For now, provides data structures and local management.

Constructors

PreferencesManager()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cleanupExpired() → int
Cleanup expired preferences
getPreferences(PeerId peerId) → PeerPreferences?
Get peer preferences
getStats() → Map<String, dynamic>
Get statistics
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removePreferences(PeerId peerId) → void
Remove peer preferences
storePreferences(PeerPreferences preferences) → void
Store peer preferences
toString() → String
A string representation of this object.
inherited

Operators

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