addFeatureFlag method

void addFeatureFlag(
  1. String name, [
  2. String? variant
])

Add a single feature flag with an optional variant. If there is an existing feature flag with the same name, it will be overwritten with the new variant.

See also:

Implementation

void addFeatureFlag(String name, [String? variant]) =>
    _featureFlags.addFeatureFlag(name, variant);