copyWith method

PanelValue copyWith({
  1. PanelState? state,
  2. double? factor,
  3. double? offset,
  4. Offset? position,
})

Implementation

PanelValue copyWith({
  PanelState? state,
  double? factor,
  double? offset,
  Offset? position,
}) {
  return PanelValue(
    state: state ?? this.state,
    factor: factor ?? this.factor,
    offset: offset ?? this.offset,
    position: position ?? this.position,
  );
}