color property
Color?
color
Gets the background color of the stage.
Implementation
ui.Color? get color {
return _backgroundPaint?.color;
}
Sets the background color of the stage.
Implementation
set color(ui.Color? value) {
if (value == null) {
_backgroundPaint = null;
} else {
_backgroundPaint ??= ui.Paint();
_backgroundPaint!.color = value;
}
}