Throws an exception when trying to listen to the stream for the second time.
Stream has already been listened to.
According to uni_links_platform_interface, linkStream should return:
A broadcast stream for receiving incoming link change events.uni_links_platform_interface.dart
In your implementation:
final _linkStreamController = StreamController<String?>();
(...)
Stream<String?> get linkStream => _linkStreamController.stream;
Throws an exception when trying to listen to the stream for the second time.
Stream has already been listened to.
According to uni_links_platform_interface,
linkStream
should return:A broadcast stream for receiving incoming link change events.
uni_links_platform_interface.dartIn your implementation:
Which is not a broadcast stream.