copyWith method

AABB copyWith({
  1. Vec2? position,
  2. double? width,
  3. double? height,
})

Implementation

AABB copyWith({
  Vec2? position,
  double? width,
  double? height,
}) {
  return AABB(
    position: position ?? this.position,
    width: width ?? this.width,
    height: height ?? this.height,
  );
}