NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev, #2849 most downloaded on pub.dev
Dart (Flutter) SDK for ConfigCat. ConfigCat is a hosted feature flag service that lets you manage feature toggles across frontend, backend, mobile, desktop apps.
Latest stable
5.1.0
Last release 27 days ago
26 Oct 2026
Ships unpredictably
gaps range from 2 weeks to 2.4 years
Nearly every release is documented
notes for 29 of 30 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
30 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
When a single ConfigCatOptions instance was shared between different clients, they also shared the same Hooks instance. This resulted in inconsistent
ConfigCatOptions instance was shared between different clients, they also shared the same Hooks instance. This resulted in inconsistent ready-state handling.
The type of the ConfigCatOptions's hooks parameter is now a Function(Hooks) instead of Hooks.
Now, each ConfigCatClient creation creates a new Hooks instance, which is passed to the function set on the options.The type of the ConfigCatOptions's hooks parameter is changed to Function(Hooks).
Usage is changed from:
final opts = ConfigCatOptions(
hooks: Hooks(onFlagEvaluated: (details) => /* handle the event */),
);
to:
final opts = ConfigCatOptions(
hooks: (h) => h.addOnFlagEvaluated((details) => /* handle the event */),
);
Export the ClientCacheState type.
ClientCacheState type.Your coding agent can read these notes before it upgrades. Set up the MCP server →
The concept of Snapshots. They are for capturing the actual state of the feature flag data used by the SDK. A snapshot allows synchronous operations o
final snapshot = client.snapshot();
final isMyFeatureEnabled = snapshot.getValue(key: 'isMyFeatureEnabled', defaultValue: false);
onClientReadyWithSnapshot hook that gets a ConfigCatClientSnapshot parameter. It's called the same time when onClientReady is called.EvaluationErrorCode and RefreshErrorCode) on EvaluationDetails and RefreshResult.Missing ready hook invocation in case of local-only overrides.
Add .waitForReady() to wait asynchronously for the SDK to reach ready state.
.waitForReady() to wait asynchronously for the SDK to reach ready state.onReady hook got a ClientCacheState parameter.Initial config JSON load when auto poll enabled with results from cache.
Rename SettingsValue to correct SettingValue
Changed
SettingsValue to correct SettingValuegetKeyAndValue missing exceptionIn the case of WEB platform, the SDK now sends the ETag and the SDK-related info in query parameters.
WEB platform support.WEB platform, the SDK now sends the ETag and the SDK-related info in query parameters.WEB platform support.WEB platform the SDK now sends the Etag and SDK info in query parameters.Add support for the new Config JSON v6 format: update the config model and implement new features in setting evaluation logic.
ConfigCatUser constructor custom parameter type to Map<String, Object> to allow other values than string.matchedEvaluationRule property to matchedTargetingRule and the matchedEvaluationPercentageRule property to matchedPercentageOption in EvaluationDetails.Config modelStandardized config cache key generation algorithm and cache payload format to allow shared caches to be used by SDKs of different platforms.
getVariationId() / getAllVariationIds() methods. Alternative: getValueDetails() / getAllValueDetails()logger package dependency. Switched to simple print() as default.
logger package dependency. Switched to simple print() as default.Bump to dio v5.2.0 in order to use DioException instead of the deprecated DioError.
dio v5.2.0 in order to use DioException instead of the deprecated DioError.Set min Dart SDK version to >=2.19.0.
>=2.19.0.Deprecated getVariationId() and getAllVariationIds() methods in favor of getValueDetails() and getAllValueDetails().
getAllValueDetails() method.getVariationId() and getAllVariationIds() methods in favor of getValueDetails() and getAllValueDetails().Renamed mode configuration option to pollingMode.
mode configuration option to pollingMode.Prevent auto-poll from starting when the SDK is initialized in offline mode.
Allow offline SDK initialization with an offline configuration option.
offline configuration option.RolloutPercentageItem -> PercentageRule
RolloutPercentageItem -> PercentageRuleuser field of EvaluationDetails in case of errors.Hanging due to non-cancelled Future.delayed.
Future.delayed.### Fixed - Static analyzer warnings.
setDefaultUser(user) / clearDefaultUser() methods to set / remove a default user object used when there's no user passed to getValue() / getValueDetai
setDefaultUser(user) / clearDefaultUser() methods to set / remove a default user object used when there's no user passed to getValue() / getValueDetails() / getAllValues() / getAllVariationIds() methods.setOffline() / setOnline() methods to indicate whether the SDK is allowed to make HTTP calls or not. In 'offline' mode the SDK works from the cache only.onClientReady() / onConfigChanged(Map<string, Setting>) / onFlagEvaluated(EvaluationDetails) / onError(String) hooks. Subscription is possible on client initialization options and on the hooks property of ConfigCatClient.getValueDetails() method to retrieve evaluation details along with the feature flag / setting value. It returns the same details that is passed to onFlagEvaluated(EvaluationDetails) on each evaluation.close() method was split to an instance level close() method which closes the given ConfigCatClient and to a static closeAll() method which closes all instantiated client instances.forceRefresh() method now returns with a result object that indicates whether the refresh succeeded or not.lazyLoad and interval of autoPoll is compared against a cached fetchTime, which allows the SDK not necessarily download a new config.json at each application restart.onConfigChanged() hook parameter of PollingModes.autoPoll(). It was replaced by the newly introduced onConfigChanged(Map<string, Setting>) hook function which is invoked with each polling mode.Replaced the refresh policies construction with a single config service that takes care of the different polling mechanisms, caching, and the synchron
Send the correct SDK version in HTTP header.
When the dataGovernance parameter wasn't in match with the remote setting, it could have happened that the fetcher downloaded the correct config.json
dataGovernance parameter wasn't in match with the remote setting, it could have happened that the fetcher downloaded the correct config.json multiple times.- First official release.
- WIP release.
- WIP release.
- WIP release.
Nothing published for this version
- WIP release.
One column per quarter.