activate method

Future<bool> activate()

Makes the last fetched config available to getters.

Returns a bool that is true if the config parameters were activated. Returns a bool that is false if the config parameters were already activated.

Implementation

Future<bool> activate() async {
  final bool configChanged = await _remoteConfig?.activate() ?? false;
  if (configChanged) {
    // Only if not activated yet.
    notifyListeners();
  }
  return configChanged;
}