We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getFeatureFlagResult
1 parent 264b167 commit 7c545e5Copy full SHA for 7c545e5
example/lib/main.dart
@@ -393,6 +393,16 @@ class InitialScreenState extends State<InitialScreen> {
393
},
394
child: const Text("getFeatureFlagPayload"),
395
),
396
+ ElevatedButton(
397
+ onPressed: () async {
398
+ final result = await _posthogFlutterPlugin
399
+ .getFeatureFlagResult("feature_name");
400
+ setState(() {
401
+ _result = result?.toString();
402
+ });
403
+ },
404
+ child: const Text("getFeatureFlagResult"),
405
+ ),
406
ElevatedButton(
407
onPressed: () async {
408
await _posthogFlutterPlugin.reloadFeatureFlags();
0 commit comments