noticeAnnouncement function
void
noticeAnnouncement(})
Implementation
void noticeAnnouncement(String msg,
{String preformat = "&l&o&b",
List<int> colors = const [0x2c404a, 0x2c364a, 0x2c304a, 0x2f2c4a],
int? boxSpin}) {
assert(colors.length == 4, "colors must have 4 values");
if (boxSpin != null) {
colors = [
_argb2rgb(ui.Color(boxSpin).toARGB32()),
_argb2rgb(ui.Color(boxSpin).spin(-11).toARGB32()),
_argb2rgb(ui.Color(boxSpin).spin(11).toARGB32()),
_argb2rgb(ui.Color(boxSpin).spin(33).toARGB32())
];
}
announcement(
thick: false,
msg: msg,
fringes: false,
clip: true,
preformat: preformat,
tl: Color.hex("#${colors[0].toRadixString(16)}"),
tr: Color.hex("#${colors[1].toRadixString(16)}"),
br: Color.hex("#${colors[2].toRadixString(16)}"),
bl: Color.hex("#${colors[3].toRadixString(16)}"));
}