log function

dynamic log(
  1. String text, {
  2. PrintColor color = PrintColor.normal,
})

Print text in the color color to the console

Implementation

log(String text, {PrintColor color = PrintColor.normal}) {
  print("${color.code}$text${PrintColor.normal.code}");
}