mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
🏷 Backport some code improvements from the null-safety branch (#603)
This commit is contained in:
@ -28,8 +28,8 @@ class TextComponent extends PositionComponent {
|
||||
_updateBox();
|
||||
}
|
||||
|
||||
TextComponent(this._text, {TextConfig config}) {
|
||||
_config = config ?? TextConfig();
|
||||
TextComponent(this._text, {TextConfig config})
|
||||
: _config = config ?? TextConfig() {
|
||||
_updateBox();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user