listenForDataWedgeEvent static method
Listen for DataWedge events with the name "io.mway.data_wedge_intent.ACTION"
Be sure that your DataWedge Profile is setup correctly (see README.md)
Response:
{
decodedSource:String,
decodedData:String,
decodedLabelType:String
}```
Exception can appear and will bereturned as String in an event
TODO(rework as this is bad solution)
Implementation
static StreamSubscription listenForDataWedgeEvent(
void Function(dynamic event) listener) {
return _dataWedgeStream.listen(listener);
}