isFeatureEnabled method

  1. @override
Future<bool> isFeatureEnabled(
  1. String key, {
  2. bool? sendFeatureFlagEvent,
  3. bool? defaultValue,
})

Implementation

@override
Future<bool> isFeatureEnabled(
  String key, {
  bool? sendFeatureFlagEvent,
  bool? defaultValue,
}) async {
  final result = await handleWebMethodCall(
    MethodCall('isFeatureEnabled', {
      'key': key,
      if (sendFeatureFlagEvent != null) 'sendEvent': sendFeatureFlagEvent,
      if (defaultValue != null) 'defaultValue': defaultValue,
    }),
  );
  return result as bool? ?? false;
}