Flutter SDK 4.0.0
Changed
- The
Flag getFlag<T>(String key)is the new signature for the getFlag method . - The
func value<T>(defaultValue:T?,visitorExposed: Bool = true)->T?is the new signature for flag.value() method . - Signature
newVisitormethod builder changed toVisitorBuilder newVisitor({required String visitorId, required bool hasConsented, Instance instanceType = Instance.SINGLE_INSTANCE}). hasConsentedparameter is mandatory on visitor creation instance.- Enum SDK status
FSSdkStatushas replacedFStatus. withStatusListenerrenamed toonSdkStatusChanged.
For further information, see migration code.
Added
- Flag status
- Visitor status
getFlags()new method to get all flags in one collection asFSFlagCollectionFlagCollectionis a collection of flagMap<String, Flag>
For further information, see 4.0.0 reference.
Removed
Deprecated methods:
- synchronizeModifications
- getModification
- getModificationInfo
- activateModification
- userExposed