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:
Properties
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