unindent method

String unindent()

Returns this string with all extra indentation stripped while preserving the 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() => Indentation(this).unindent();