log function

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

Implementation

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