prependSpace method

String prependSpace(
  1. int width
)

Adds width of spaces to the beginning of this string.

Implementation

String prependSpace(int width) => '${" " * width}$this';