getMobileUserId method
The mobile user id, if present, otherwise null
.
@returns A Future that completes with the mobile user id saved or null if no mobile id is saved.
Implementation
Future<int?> getMobileUserId() async {
SharedPreferences prefs = await SharedPreferences.getInstance();
int? mobileUserId = prefs.getInt(_mobileUserIdKey);
return mobileUserId;
}