copyWith method

LogConfig copyWith({
  1. String? fileName,
  2. bool? includeSensors,
  3. bool? includeGPS,
  4. int? intervalMs,
})

API Documentation for copyWith.

Implementation

LogConfig copyWith({
  String? fileName,
  bool? includeSensors,
  bool? includeGPS,
  int? intervalMs,
}) {
  return LogConfig(
    fileName: fileName ?? this.fileName,
    includeSensors: includeSensors ?? this.includeSensors,
    includeGPS: includeGPS ?? this.includeGPS,
    intervalMs: intervalMs ?? this.intervalMs,
  );
}