Skip to content

Commit

Permalink
consentInfo() always return the updated value, closes blaugold#7
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillergood committed Jun 19, 2024
1 parent defb1cc commit 34c1f5c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/iabtcf_consent_info/lib/iabtcf_consent_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,10 @@ class IabtcfConsentInfo {
/// The singleton instance of this plugin.
static late final instance = IabtcfConsentInfo._();

// ignore: close_sinks
late final _consentInfo = ReplaySubject<BasicConsentInfo?>(
maxSize: 1,
onListen: _onConsentInfoListen,
onCancel: _onConsentInfoCancel,
late final _consentInfo = BehaviorSubject<BasicConsentInfo?>(
onListen: _onConsentInfoListen,
onCancel: _onConsentInfoCancel,
sync: true
);

late StreamSubscription<void> _rawConsentInfoSub;
Expand Down

0 comments on commit 34c1f5c

Please sign in to comment.