copyWith method

HoldCapsuleState copyWith({
  1. HoldShape? shape,
  2. double? fill,
  3. double? emptyingFill,
})

Implementation

HoldCapsuleState copyWith({
  HoldShape? shape,
  double? fill,
  double? emptyingFill,
}) => HoldCapsuleState(
  shape: shape ?? this.shape,
  fill: fill ?? this.fill,
  emptyingFill: emptyingFill ?? this.emptyingFill,
);