setting static method

void setting(
  1. String selector,
  2. String text, {
  3. required bool secret,
})

Implementation

static void setting(String selector, String text, {required bool secret}) {
  "setting".write(inYellow);
  " ─→ ".write(inRed);
  "$selector".write(inPurple);
  " ─→ ".write(inRed);
  if (secret) {
    "********".writeLine(inGreen);
  } else {
    "$text".writeLine(inGreen);
  }
}