Pulse class

Annotation to mark a method as a pulse (signal/action)

The method signature determines the pulse parameters. Return type should be void.

Example:

@Pulse()
void addItem(String productId, int quantity);
// Generates: AirPulse<({String productId, int quantity})>('module.addItem')

Constructors

Pulse({String? name, String? description})
const

Properties

description String?
Description for documentation
final
hashCode int
The hash code for this object.
no setterinherited
name String?
Custom pulse name (defaults to method name)
final
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