indentBy method

String indentBy(
  1. int howMuch
)

Returns this string with indentation level changed by howMuch.

For example, the input:

Hello World

with howMuch of 2 will result in:

 Hello
World

If howMuch is negative, the indentation level will be decreased.

For example, the input:

Hello World

with howMuch of -2 will result in:

Hello World

Implementation

String indentBy(int howMuch) => Indentation(this).indentBy(howMuch);