saveSession method

  1. @override
Future<bool> saveSession(
  1. Session session
)
override

Implementation

@override
Future<bool> saveSession(Session session) {
  return SharedPreferences.getInstance().then((prefs) => prefs.setString( getObjectKey("Session"), jsonEncode(session.toJson())));
}