refreshConfigs static method

Future refreshConfigs()

Implementation

static Future<dynamic> refreshConfigs() async {
  final ParseResponse response = await ParseConfig().getConfigs();
  final SharedPreferences prefs = await SharedPreferences.getInstance();

  if (response.success) {
    debugPrint('We have our configs.');
    prefs.setString("config", json.encode(response.result));
    return response.result;
  }

  return null;
}