containsLocalPoint method
Whether a point is within the boundaries of the visible part of the game.
Implementation
@override
bool containsLocalPoint(Vector2 point) {
return point.x >= 0 &&
point.y >= 0 &&
point.x < canvasSize.x &&
point.y < canvasSize.y;
}