write static method

CappConsole write(
  1. dynamic obj, [
  2. CappColors color = CappColors.none,
  3. dynamic space = false
])

write method is used to print the output to the console.

Implementation

static CappConsole write(
  dynamic obj, [
  CappColors color = CappColors.none,
  space = false,
]) {
  return CappConsole(
          "${space ? '\n\n' : ''}$obj${space ? '\n\n' : ''}", color)
      .log();
}