getFeatureFlag method Null safety

Future<bool?> getFeatureFlag(
  1. String key,
  2. bool defaultValue
)

Feature Flags Returns boolean value of Feature Flag

Implementation

static Future<bool?> getFeatureFlag(String key, bool defaultValue) async {
  return await _channel.invokeMethod(
      'getFeatureFlag', {'key': key, 'defaultValue': defaultValue});
}