copyWith method

Settings copyWith({
  1. List<String>? watchList,
  2. int? rsiPeriod,
  3. double? rsiBuyThreshold,
  4. double? rsiSellThreshold,
  5. int? rotationPeriod,
})

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,
  );
}