SignalData

data class SignalData<T>(val value: T, val params: Map<String, Any?> = emptyMap())

A data class that wraps a value with associated parameters. Used for emitting signals with additional metadata or context.

Parameters

T

The type of the wrapped value.

Constructors

Link copied to clipboard
constructor(value: T, params: Map<String, Any?> = emptyMap())

Properties

Link copied to clipboard

Additional parameters associated with this signal.

Link copied to clipboard
val value: T

The main value being transmitted.

Functions

Link copied to clipboard
fun <R> getParam(key: String): R?

Retrieves a parameter value by key.

Link copied to clipboard

Checks if a parameter with the given key exists.