DeviceInformation constructor

DeviceInformation({
  1. String? deviceId,
  2. String? deviceName,
  3. String? osName,
  4. String? osVersion,
  5. num? osVersionCode,
  6. String? softwareName,
  7. String? softwareVersion,
  8. String? applicationId,
  9. String? applicationType,
  10. String? applicationName,
  11. String? applicationVersion,
  12. String? applicationBuildCode,
})

Implementation

DeviceInformation({
  String? deviceId,
  String? deviceName,
  String? osName,
  String? osVersion,
  num? osVersionCode,
  String? softwareName,
  String? softwareVersion,
  String? applicationId,
  String? applicationType,
  String? applicationName,
  String? applicationVersion,
  String? applicationBuildCode,
})  : deviceId = deviceId ?? 'unknown_device_id',
      deviceName = deviceName ?? 'unknown_device_name',
      osName = osName ?? 'unknown_os_name',
      osVersion = osVersion ?? 'unknown_os_version',
      osVersionCode = osVersionCode ?? -1,
      softwareName = softwareName ?? 'unknown_software_name',
      softwareVersion = softwareVersion ?? 'unknown_software_version',
      applicationId = applicationId ?? 'unknown_application_id',
      applicationType = applicationType ?? 'unknown_application_type',
      applicationName = applicationName ?? 'unknown_application_name',
      applicationVersion =
          applicationVersion ?? 'unknown_application_version',
      applicationBuildCode =
          applicationBuildCode ?? 'unknown_application_build_code';