update method

Future<void> update()

Session updater(reloads session fetching the latest data)

@returns Future

Implementation

Future<void> update() async {
  SharedPreferences prefs = await _prefs;
  try {
    return await prefs.reload();
  } catch (e) {
    throw Exception("It wasn't possible to reload and update the session.");
  }
}