error static method

BoxBuilder error(
  1. String title,
  2. String content
)

Creates an error-styled box.

Implementation

static BoxBuilder error(String title, String content) {
  return BoxBuilder()
    ..title(title)
    ..content(content)
    ..border(style_border.Border.rounded)
    ..titleStyle(Style().bold().foreground(Colors.error));
}