getStartLog method

String getStartLog([
  1. bool withColor = true
])

Retorna o cabeçalho do log (nome da classe/origem) formatado.

withColor: quando true aplica a transformação de cor retornada por getColor; quando false retorna texto sem códigos ANSI.

Implementation

String getStartLog([bool withColor = true]) {
  if (withColor) {
    return getColor().call(_logHeader);
  }
  return _logHeader;
}