getCustomId method

Future<String?> getCustomId()

The custom id, if present, otherwise null. @returns A Future that completes with the custom id saved or null if no custom id is saved.

Implementation

Future<String?> getCustomId() async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  String? customId = prefs.getString(_customIdKey);
  return customId;
}