copyWith method
Copy options with modifications
Implementation
VisProfilerOptions copyWith({
bool? enableLocation,
bool? enableNetworkInfo,
bool? enableAdId,
bool? enableDeviceInfo,
bool? enablePublicIp,
bool? enablePeriodicSending,
int? sendIntervalMs,
bool? enableLogging,
bool? enableCaching,
bool? enableInitialDataSend,
}) {
return VisProfilerOptions(
enableLocation: enableLocation ?? this.enableLocation,
enableNetworkInfo: enableNetworkInfo ?? this.enableNetworkInfo,
enableAdId: enableAdId ?? this.enableAdId,
enableDeviceInfo: enableDeviceInfo ?? this.enableDeviceInfo,
enablePublicIp: enablePublicIp ?? this.enablePublicIp,
enablePeriodicSending:
enablePeriodicSending ?? this.enablePeriodicSending,
sendIntervalMs: sendIntervalMs ?? this.sendIntervalMs,
enableLogging: enableLogging ?? this.enableLogging,
enableCaching: enableCaching ?? this.enableCaching,
enableInitialDataSend: enableInitialDataSend ?? this.enableInitialDataSend,
);
}