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 cf2bf14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/iabtcf_consent_info/lib/iabtcf_consent_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ class IabtcfConsentInfo {
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 cf2bf14

Please sign in to comment.