onInsert property

Stream<TableInsertEvent<T>> get onInsert

Fires when a row is inserted into this table. Broadcast — multiple subscribers each receive every event. No replay: late subscribers do not see past events. Fires synchronously during the transaction, before lastBatch fires.

client.chat.onInsert.listen((e) => playDingSound());

Implementation

Stream<TableInsertEvent<T>> get onInsert => _onInsertController.stream;