register method

void register(
  1. String flagName, {
  2. bool defaultValue = false,
})

Registers a feature flag with an initial defaultValue.

Implementation

void register(String flagName, {bool defaultValue = false}) {
  _defaults[flagName] = defaultValue;
  if (!_flags.containsKey(flagName)) {
    _flags[flagName] = signal(defaultValue);
  }
}