alertsStreamer property
override
Stream of alerts. Emits a JSON-encoded list of alert objects.
symbolInfo is a full SymbolInfo object — an alert can be for any
symbol, not just one currently on screen, so the host app must embed
enough to display it (see SymbolInfo.toJson) rather than a bare id.
createdAt is epoch milliseconds (UTC), not a formatted string.
[
{
"alertId": "357807025062912",
"symbolInfo": { "id": "IDX_-1_NSE", "name": "NIFTY", ... },
"triggerPrice": "25003",
"enabled": true,
"triggered": false,
"createdAt": 1769509922000
}
]
Implementation
@override
Stream<String> get alertsStreamer =>
_alertsChannel.receiveBroadcastStream().cast<String>();