payload property
P?
get
payload
The primary data or instruction carried by this signal.
When to use
- This is the reason the pulse exists — the actual data you want to send. Read it to get the signal's content.
- Reading the signal's content.
- Extracting data for processing.
- Inspecting what a pulse carries.
How it works
The payload is resolved by walking up the parent chain. Evolved pulses inherit their payload from their root — they don't duplicate it.
Example
final pulse = Pulse<String>('Hello');
print(pulse.payload); // 'Hello'
Implementation
P? get payload;