copyWith method
克隆新的日志配置
Implementation
LogConfig copyWith({
int? methodCount,
int? lineLength,
bool? printTitle,
AnsiColor? color,
bool? autoWrap,
List<String>? excludePaths,
}) {
return LogConfig(
methodCount: methodCount ?? this.methodCount,
lineLength: lineLength ?? this.lineLength,
printTitle: printTitle ?? this.printTitle,
color: color ?? this.color,
autoWrap: autoWrap ?? this.autoWrap,
excludePaths: excludePaths == null
? this.excludePaths
: [...this.excludePaths!, ...excludePaths],
);
}