UserStatsRegistry class

Singleton registry where modules dump their user stats as key-value pairs.

This allows neom_ia (Itzli) to read stats from neom_nupale and neom_casete without creating direct dependencies between modules.

Usage:

  • Nupale/Casete controllers call register after loading sessions.
  • ItzliUserStats reads via getAll when the user asks about their stats.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasStats → bool
Whether any stats have been registered.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear all registered stats (e.g., on logout).
getAll() → Map<String, Map<String, String>>
Get all registered stats across all modules.
getModule(String module) → Map<String, String>?
Get stats for a specific module, or null if not registered.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(String module, Map<String, String> stats) → void
Register stats for a module (replaces previous stats for that module).
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → UserStatsRegistry
final