print method

void print(
  1. Object object, [
  2. LogColor? color
])

Implementation

void print(Object object, [ LogColor? color ]) {
  String begin, end;
  if (color != null) {
    begin = escForColor(color);
    end = resetEsc;
  } else {
    begin = '';
    end = '';
  }

  if (shouldLog) {
    _internalPrint(begin + nextIndent + object.toString() + end);
  }
}