printAction method

void printAction(
  1. String string,
  2. Object object, {
  3. String additional = '',
  4. bool printAncestorChain = false,
})

Implementation

void printAction(String string, Object object, { String additional = '', bool printAncestorChain = false }) {
  String end;
  if (printAncestorChain)
       end = ' | ancestor chain: ' + widgetAncestorChainOf(object);
  else end = '';

  String objectString = object.toString();
  if (object is RenderBox)
    objectString += ' ' + rectToString(paintBounds(object));

  print(string + ' $dimGreenTextEsc' + objectString + '$resetEsc | ' + additional + end);
}