I was reading the example game code in the Flame game engine.
Code:
MyGame() {
add(Square()
..x = 100
..y = 100);
}
this was the code in the repository (line 59-63): https://github.com/flame-engine/flame/blob/master/example/lib/main.dart
I have seen this notation earlier but I never understood what (..x
and ..y
) means.
What does ..
represent here?