isFeatureEnabled static method

Future<bool> isFeatureEnabled(
  1. String featureKey
)

Implementation

static Future<bool> isFeatureEnabled(String featureKey) async {
  try {
    final bool isEnabled = await plotlineChannel.invokeMethod('isFeatureEnabled', {
      'featureKey': featureKey,
    });
    return isEnabled;
  } catch (e) {
    debugPrint("Error in isFeatureEnabled: $e");
    return false; // Default fallback
  }
}