GeneratedPulsesRegistry class

Registry for generated pulses

Used by generated code to register pulses:

class CounterPulses {
  static const increment = AirPulse<void>('counter.increment');
  static void register() {
    GeneratedPulsesRegistry.register('counter', [increment]);
  }
}

Constructors

GeneratedPulsesRegistry()

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

moduleIds List<String>
Get all registered module IDs
no setter

Static Methods

clear() → void
Clear registry (for testing)
getPulses(String moduleId) List<AirPulse>
Get all pulses for a module
register(String moduleId, List<AirPulse> pulses) → void
Register pulses for a module