The code is trying to compare StreamSubscription with StreamSubscription<dynamic> strings, so It will always fail.
I suggest creating a pattern to ignore the subtype of the node type, effectively removing the <dynamic> part. Note that in some cases, the node type may have more than one subtype, but I believe a pattern for removing everything after < should be enough.
This is a really good package, by the way. Great job.
I'm currently using:
Timer is working fine and AnimationController too, but StreamSubscription is not working and here is why:
The code is trying to compare
StreamSubscription
withStreamSubscription<dynamic>
strings, so It will always fail.I suggest creating a pattern to ignore the subtype of the node type, effectively removing the
<dynamic>
part. Note that in some cases, the node type may have more than one subtype, but I believe a pattern for removing everything after<
should be enough.This is a really good package, by the way. Great job.