password property

Future<String?> password

Gets the password from the shared preferences. Returns null if not found.

Implementation

Future<String?> get password async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  return prefs.getString('lg_password');
}