Closed blue492 closed 1 year ago
Can I see the full method, please. Is it async?
Can I see the full method, please. Is it async?
I updated the description
Are you awaiting its result?
final id = await get_device_Id(context)?
If yes, do it like this:
final String? id = await AndroidId().getId(); return id ?? 'null'; // unique ID on Android
Are you awaiting its result?
final id = await get_device_Id(context)?
If yes, do it like this:
final String? id = await AndroidId().getId(); return id.toString(); // unique ID on Android
Are you awaiting its result? Yes But why? same method worked before
Do you see a difference between
return await _androidIdPlugin.getId().toString()
and
return (await _androidIdPlugin.getId()).toString()
Do you see a difference between
return await _androidIdPlugin.getId().toString()
and
return (await _androidIdPlugin.getId()).toString()
return (await _androidIdPlugin.getId()).toString()
solved the problem, thanks
Hi, when I execute the following code, the variable
androidId
get this resultInstance of 'Future<String?>'
Why it happen?