getname static method

Future<String?> getname()

Implementation

static Future<String?> getname() async {
  SharedPreferences pref = await SharedPreferences.getInstance();
  return pref.getString(Key_name);
}