printSuccess function

void printSuccess(
  1. String text
)

Prints text to the console as a success message with green color.

Implementation

void printSuccess(String text) {
  print('\x1B[32m$text\x1B[0m');
}