setHasDarkBackground function
Updates the dark background state.
Call this when the terminal reports its background color. This is typically done automatically by Widget.update when it receives a BackgroundColorMsg.
Implementation
void setHasDarkBackground(bool value) {
_hasDarkBackground = value;
}