copyWith method

DatumLogger copyWith({
  1. bool? enabled,
  2. bool? colors,
  3. LogLevel? minimumLevel,
  4. Map<String, LogSampler>? samplers,
  5. bool? enablePerformanceLogging,
  6. Duration? performanceThreshold,
})

Implementation

DatumLogger copyWith({
  bool? enabled,
  bool? colors,
  LogLevel? minimumLevel,
  Map<String, LogSampler>? samplers,
  bool? enablePerformanceLogging,
  Duration? performanceThreshold,
}) {
  return DatumLogger(
    enabled: enabled ?? this.enabled,
    colors: colors ?? this.colors,
    minimumLevel: minimumLevel ?? this.minimumLevel,
    samplers: samplers ?? this.samplers,
    enablePerformanceLogging: enablePerformanceLogging ?? this.enablePerformanceLogging,
    performanceThreshold: performanceThreshold ?? this.performanceThreshold,
  );
}