W3cubDocs

/Dart 2

onListen property

ControllerCallback onListen

The callback which is called when the stream is listened to.

May be set to null, in which case no callback will happen.

Implementation

ControllerCallback get onListen;
void onListen= (void onListenHandler())

Implementation

void set onListen(void onListenHandler());

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-async/StreamController/onListen.html