getCollisionClone method

List<CollisionArea>? getCollisionClone({
  1. bool checkOnlyClose = false,
})

Implementation

List<CollisionArea>? getCollisionClone({bool checkOnlyClose = false}) {
  return (collisionOnlyCloseCorners && checkOnlyClose)
      ? null
      : collisions?.map((e) => e.clone()).toList();
}