Signal<T> class

A typed signal that can be transmitted through cells.

Signals carry optional payload data and can be compared for equality. Used as the primary communication mechanism between cells.

Example:

// Example:
final numberSignal = Signal<int>(42);
final eventSignal = Signal<Map<String,dynamic>>({
  'type': 'click',
  'position': [100, 200]
});
Implementers

Constructors

Signal.new([T? body])
Creates a signal with optional body payload
const

Properties

body → T?
The payload data carried by this signal
final
hashCode int
The hash code for this object.
no setteroverride
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.
override