setupCollision method

void setupCollision({
  1. bool? enabled,
  2. BodyType? bodyType,
})

Implementation

void setupCollision({bool? enabled, BodyType? bodyType}) {
  this.bodyType = bodyType ?? this.bodyType;
  _blockMovementCollisionEnabled = enabled ?? _blockMovementCollisionEnabled;
}