copyWith method

VisProfilerOptions copyWith({
  1. bool? enableLocation,
  2. bool? enableNetworkInfo,
  3. bool? enableAdId,
  4. bool? enableDeviceInfo,
  5. bool? enablePublicIp,
  6. bool? enablePeriodicSending,
  7. int? sendIntervalMs,
  8. bool? enableLogging,
  9. bool? enableCaching,
  10. bool? enableInitialDataSend,
})

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,
  );
}