unindent method

String unindent()

Returns _input with all extra indentation stripped while preserving relative indentation.

For example, the input:

     Hello
   there
      World

will become:

Hello there World

Calling unindent is equivalent of calling indent with the value of 0.

Implementation

String unindent() => indent(0);