DeviceEvent constructor
DeviceEvent({})
Implementation
factory DeviceEvent({
DeviceEventKind? kind,
$core.String? deviceId,
$core.String? osName,
$core.String? osVersion,
$core.String? model,
$core.String? error,
$core.String? property,
$core.String? newValue,
$core.String? oldValue,
$core.double? batteryLevel,
$core.bool? isCharging,
$core.String? thermalState,
$core.bool? isConnected,
$core.String? connectionType,
}) {
final result = create();
if (kind != null) result.kind = kind;
if (deviceId != null) result.deviceId = deviceId;
if (osName != null) result.osName = osName;
if (osVersion != null) result.osVersion = osVersion;
if (model != null) result.model = model;
if (error != null) result.error = error;
if (property != null) result.property = property;
if (newValue != null) result.newValue = newValue;
if (oldValue != null) result.oldValue = oldValue;
if (batteryLevel != null) result.batteryLevel = batteryLevel;
if (isCharging != null) result.isCharging = isCharging;
if (thermalState != null) result.thermalState = thermalState;
if (isConnected != null) result.isConnected = isConnected;
if (connectionType != null) result.connectionType = connectionType;
return result;
}