NearbyServiceSocketListener<T> constructor
const
NearbyServiceSocketListener<T> ({
- required ValueChanged<
T> onData, - VoidCallback? onCreated,
- VoidCallback? onDone,
- void onError(
- Object, [
- StackTrace
- bool? cancelOnError,
It is required to pass the onData parameter to process the data that came through the stream.
Implementation
const NearbyServiceSocketListener({
required this.onData,
this.onCreated,
this.onDone,
this.onError,
this.cancelOnError,
});