getFeatureFlag static method
Implementation
static Future<String?> getFeatureFlag(String featureKey) async {
try {
final String? flagValue = await plotlineChannel.invokeMethod('getFeatureFlag', {
'featureKey': featureKey,
});
return flagValue;
} catch (e) {
debugPrint("Error in getFeatureFlag: $e");
return null; // Default fallback
}
}