addFeatureFlag

open fun addFeatureFlag(@NonNull name: String)

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


open fun addFeatureFlag(@NonNull name: String, @Nullable variant: String)

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. If the variant is {@code null} this method has the same behaviour as {@link #addFeatureFlag(String)}.