copyWith method

TalkerLoggerSettings copyWith({
  1. Map<LogLevel, AnsiPen>? colors,
  2. String? defaultTitle,
  3. LogLevel? level,
  4. String? lineSymbol,
  5. int? maxLineWidth,
  6. bool? enableColors,
})

Implementation

TalkerLoggerSettings copyWith({
  Map<LogLevel, AnsiPen>? colors,
  String? defaultTitle,
  LogLevel? level,
  String? lineSymbol,
  int? maxLineWidth,
  bool? enableColors,
}) {
  return TalkerLoggerSettings(
    colors: colors ?? this.colors,
    defaultTitle: defaultTitle ?? this.defaultTitle,
    level: level ?? this.level,
    lineSymbol: lineSymbol ?? this.lineSymbol,
    maxLineWidth: maxLineWidth ?? this.maxLineWidth,
    enableColors: enableColors ?? this.enableColors,
  );
}