widgetClicked property
Implementation
static Stream<Uri?> get widgetClicked {
return _eventChannel.receiveBroadcastStream().map<Uri?>((event) {
if (event != null) {
if (event is String) {
try {
return Uri.parse(event);
} on FormatException {
debugPrint('Received Data($event) is not parsebale into an Uri');
}
}
return Uri();
} else {
return null;
}
});
}