Skip to content

5.26.0

Choose a tag to compare

@github-actions github-actions released this 05 Jun 20:04
· 277 commits to main since this release
Immutable release. Only release title and notes can be modified.
1126672

Minor Changes

  • 4749dd4: Add setPersonPropertiesForFlags, resetPersonPropertiesForFlags, setGroupPropertiesForFlags, and resetGroupPropertiesForFlags, bringing the Flutter SDK to parity with the native iOS/Android and JS SDKs.

    These set person/group properties that are sent inline with the next feature flag evaluation request, so flags targeting those properties can be evaluated immediately — without enqueuing a $set event or waiting for it to be ingested into the person store. By default they reload feature flags and the returned Future completes only after the reload finishes, so the next getFeatureFlag/getFeatureFlagResult reflects the updated properties. Pass reloadFeatureFlags: false to skip the reload.

    await Posthog().setPersonPropertiesForFlags({
      "storefront_country": "US",
      "superwall_demand_score": 88,
    });
    final result = await Posthog().getFeatureFlagResult("my_flag");