onData method - StreamSubscription class - dart:async library (original) (raw)
onData abstract method
void onData(
- void handleData(
- T data
)? )
- T data
Replaces the data event handler of this subscription.
The handleData
function is called for each data event of the stream after this function is called. If handleData
is null
, data events are ignored.
This method replaces the current handler set by the invocation ofStream.listen or by a previous call to onData.
Implementation
void onData(void handleData(T data)?);