copyWith method
CopyWith the current EventSpa with the new values
event
is the new values
Return the new EventSpa
If the value is null, the old value will be used
If the value is not null, the new value will be used
Implementation
EventSpa copyWith(EventSpa event) {
return EventSpa(
latitude: event.latitude ?? latitude,
longitude: event.longitude ?? longitude,
libraryVersion: event.libraryVersion ?? libraryVersion,
ipAddress: event.ipAddress ?? ipAddress,
userId: event.userId ?? userId,
sessionId: event.sessionId ?? sessionId,
counterId: event.counterId ?? counterId,
appScreen: event.appScreen ?? appScreen,
appVersion: event.appVersion ?? appVersion,
eventType: event.eventType ?? eventType,
deviceId: event.deviceId ?? deviceId,
appName: event.appName ?? appName,
deviceName: event.deviceName ?? deviceName,
osVersion: event.osVersion ?? osVersion,
osName: event.osName ?? osName,
platform: event.platform ?? platform,
language: event.language ?? language,
resolutionWidth: event.resolutionWidth ?? resolutionWidth,
resolutionHeight: event.resolutionHeight ?? resolutionHeight,
customParam: event.customParam,
id: event.id ?? id,
uriSand: event.uriSand ?? uriSand,
);
}