Implementation
static Future<String> get deviceId async {
if (Platform.isAndroid) {
return _deviceInfo.androidInfo
.then((AndroidDeviceInfo value) => value.id);
}
return _deviceInfo.iosInfo
.then((IosDeviceInfo value) => value.identifierForVendor ?? 'n/a');
}