setupBlockMovementCollision method

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

Implementation

void setupBlockMovementCollision({bool? enabled, BodyType? bodyType}) {
  _bodyType = bodyType ?? _bodyType;
  _blockMovementCollisionEnabled = enabled ?? _blockMovementCollisionEnabled;
}