copyWith method

DebugView copyWith({
  1. SurfaceDebugChannel? channel,
  2. double? gain,
  3. double? rangeMin,
  4. double? rangeMax,
  5. DebugRangePolicy? rangePolicy,
})

Implementation

DebugView copyWith({
  SurfaceDebugChannel? channel,
  double? gain,
  double? rangeMin,
  double? rangeMax,
  DebugRangePolicy? rangePolicy,
}) => DebugView(
  channel: channel ?? this.channel,
  gain: gain ?? this.gain,
  rangeMin: rangeMin ?? _rangeMin,
  rangeMax: rangeMax ?? _rangeMax,
  rangePolicy: rangePolicy ?? this.rangePolicy,
);