getId static method

Future<String> getId()

Implementation

static Future<String> getId() async {
  SharedPreferences pref = await SharedPreferences.getInstance();
  return '${pref.getString(Key_id)}';
}