Repository navigation
5.26.0
·
277 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor Changes
-
4749dd4: Add
setPersonPropertiesForFlags,resetPersonPropertiesForFlags,setGroupPropertiesForFlags, andresetGroupPropertiesForFlags, 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
$setevent or waiting for it to be ingested into the person store. By default they reload feature flags and the returnedFuturecompletes only after the reload finishes, so the nextgetFeatureFlag/getFeatureFlagResultreflects the updated properties. PassreloadFeatureFlags: falseto skip the reload.await Posthog().setPersonPropertiesForFlags({ "storefront_country": "US", "superwall_demand_score": 88, }); final result = await Posthog().getFeatureFlagResult("my_flag");