printColor function

void printColor(
  1. Object? object,
  2. PrintColorStyle style
)

Implementation

void printColor(Object? object, PrintColorStyle style) {
  final value = _AnsiColor(style).message(object);
  if (style.prefix.isEmpty) {
    debugPrint(value);
  } else {
    log(value, name: style.prefix.isEmpty ? "LOG" : style.prefix);
  }
}