copyWith method

SampledData copyWith({
  1. Quantity? origin,
  2. num? period,
  3. num? factor,
  4. num? lowerLimit,
  5. num? upperLimit,
  6. int? dimensions,
  7. String? data,
})

Create a deep copy of this SampledData instance.

Implementation

SampledData copyWith({
  Quantity? origin,
  num? period,
  num? factor,
  num? lowerLimit,
  num? upperLimit,
  int? dimensions,
  String? data,
}) =>
    SampledData(
      origin: origin ?? this.origin,
      period: period ?? this.period,
      factor: factor ?? this.factor,
      lowerLimit: lowerLimit ?? this.lowerLimit,
      upperLimit: upperLimit ?? this.upperLimit,
      dimensions: dimensions ?? this.dimensions,
      data: data ?? this.data,
    );