set_background_color method
Sets the console background color to a named ANSI color.
There are 16 named ANSI colors, as defined in the AnsiBackgroundColor enumeration. Depending on the console theme and background color, some colors may not offer a legible contrast against the background.
Implementation
@override
void set_background_color(
final AnsiBackgroundColor background,
) {
stdout.write(
ansi_set_background_color(background),
);
}