activate method

Future<bool> activate()

Implementation

Future<bool> activate() async {
  final prefs = await SharedPreferences.getInstance();
  final cachedConfig = prefs.getString(_cacheKey);
  if (cachedConfig != null) {
    _activeConfig = json.decode(cachedConfig);
    return true;
  }
  return false;
}