docs: Fix typo in TextComponent sample code (#2910)

This changed `=` to `:` when calling named parameter `position`.

Co-authored-by: Lukas Klingsbo <me@lukas.fyi>
This commit is contained in:
Brian Wo
2023-12-09 03:46:57 +08:00
committed by GitHub
parent fb6a57f608
commit 969a84f804

View File

@ -29,7 +29,7 @@ class MyGame extends FlameGame {
add(
TextComponent(
text: 'Hello, Flame',
position = Vector2.all(16.0),
position: Vector2.all(16.0),
),
);
}