copyWith method

LoggingConfig copyWith({
  1. bool? enablePrettyLogs,
  2. bool? showEmojis,
  3. bool? showTimestamp,
  4. bool? showColors,
  5. bool? showBorders,
  6. bool? showMetadata,
  7. int? lineLength,
  8. LogLevel? minimumLevel,
  9. bool? enabled,
  10. bool? enableDevToolsJson,
  11. Map<LogType, LogTypeConfig>? logTypeConfigs,
  12. int? maxLogs,
  13. int? retentionDays,
  14. bool? autoCleanup,
})

Implementation

LoggingConfig copyWith({
  bool? enablePrettyLogs,
  bool? showEmojis,
  bool? showTimestamp,
  bool? showColors,
  bool? showBorders,
  bool? showMetadata,
  int? lineLength,
  LogLevel? minimumLevel,
  bool? enabled,
  bool? enableDevToolsJson,
  Map<LogType, LogTypeConfig>? logTypeConfigs,
  int? maxLogs,
  int? retentionDays,
  bool? autoCleanup,
}) => LoggingConfig(
  enablePrettyLogs: enablePrettyLogs ?? this.enablePrettyLogs,
  showEmojis: showEmojis ?? this.showEmojis,
  showTimestamp: showTimestamp ?? this.showTimestamp,
  showColors: showColors ?? this.showColors,
  showBorders: showBorders ?? this.showBorders,
  showMetadata: showMetadata ?? this.showMetadata,
  lineLength: lineLength ?? this.lineLength,
  minimumLevel: minimumLevel ?? this.minimumLevel,
  enabled: enabled ?? this.enabled,
  enableDevToolsJson: enableDevToolsJson ?? this.enableDevToolsJson,
  logTypeConfigs: logTypeConfigs ?? this.logTypeConfigs,
  maxLogs: maxLogs ?? this.maxLogs,
  retentionDays: retentionDays ?? this.retentionDays,
  autoCleanup: autoCleanup ?? this.autoCleanup,
);