copyWith method
Implementation
Settings copyWith({
List<String>? watchList,
int? rsiPeriod,
double? rsiBuyThreshold,
double? rsiSellThreshold,
int? rotationPeriod,
}) {
return Settings(
watchList: watchList ?? this.watchList,
rsiPeriod: rsiPeriod ?? this.rsiPeriod,
rsiBuyThreshold: rsiBuyThreshold ?? this.rsiBuyThreshold,
rsiSellThreshold: rsiSellThreshold ?? this.rsiSellThreshold,
rotationPeriod: rotationPeriod ?? this.rotationPeriod,
);
}