syncAttributesAndOfferingsIfNeeded static method
Syncs subscriber attributes and then fetches the configured offerings for this user. This method is intended to be called when using Targeting Rules with Custom Attributes. Any subscriber attributes should be set before calling this method to ensure the returned offerings are applied with the latest subscriber attributes.
Implementation
static Future<Offerings> syncAttributesAndOfferingsIfNeeded() async {
final res =
await _channel.invokeMethod('syncAttributesAndOfferingsIfNeeded');
return Offerings.fromJson(
Map<String, dynamic>.from(res),
);
}