Countman class

Shared vsync ticker — one scheduleFrameCallback drives all plugins.

Plugins call start when they enqueue a task. The loop auto-stops when every plugin's CountmanPlugin.tick returns false, and restarts on the next start call.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

isRunning bool
no setter
pluginCount int
no setter

Static Methods

destroy() → void
Stop the loop and dispose every registered plugin. After destroy, the next start call (e.g. via a new task) rebuilds the plugin set from scratch via use.
start() → void
Request a frame loop. Plugins call this when they add a task. No-op if the loop is already running.
stop() → void
Stop the frame loop immediately. Plugins and their tasks are preserved — start resumes them.
use(CountmanPlugin plugin) → void
Register plugin by name. Duplicate names are silently ignored. Injects a CountmanContext so the plugin can request frames without depending on Countman directly.