closeButton property
PositionComponent?
get
closeButton
The optional close button to be rendered in the top-right corner.
The button will be automatically positioned based on padding and its own size.
Any PositionComponent can be used, including SpriteButtonComponent.
Implementation
PositionComponent? get closeButton => _closeButton;
set
closeButton
(PositionComponent? value)
Implementation
set closeButton(PositionComponent? value) {
_closeButton = value;
rebuild();
}