This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
LocalSpend-Tracker/lib/common/functions/save_logout.dart
2019-08-27 12:18:02 +01:00

9 lines
307 B
Dart

import 'package:shared_preferences/shared_preferences.dart';
void saveLogout() async {
SharedPreferences preferences = await SharedPreferences.getInstance();
await preferences.setString('LastUser', "");
await preferences.setString('LastToken', "");
await preferences.setString('LastEmail', "");
}