initListener static method
Implementation
static void initListener(Function(Uri) onLinkReceived) {
_sub = uriLinkStream.listen((Uri? uri) {
if (uri != null) {
log('Received URI: $uri');
onLinkReceived(uri);
}
}, onError: (err) {
log('URI Error: $err');
});
}