copyWith method

DiveTransformInfo copyWith({
  1. DiveVec2? pos,
  2. double? rot,
  3. DiveVec2? scale,
  4. DiveAlign? alignment,
  5. DiveBoundsType? boundsType,
  6. DiveAlign? boundsAlignment,
  7. DiveVec2? bounds,
})

Implementation

DiveTransformInfo copyWith({
  DiveVec2? pos,
  double? rot,
  DiveVec2? scale,
  DiveAlign? alignment,
  DiveBoundsType? boundsType,
  DiveAlign? boundsAlignment,
  DiveVec2? bounds,
}) {
  return DiveTransformInfo(
    pos: pos ?? this.pos,
    rot: rot ?? this.rot,
    scale: scale ?? this.scale,
    alignment: alignment ?? this.alignment,
    boundsType: boundsType ?? this.boundsType,
    boundsAlignment: boundsAlignment ?? this.boundsAlignment,
    bounds: bounds ?? this.bounds,
  );
}