setTab method

void setTab(
  1. int size
)

Sets the tab size to use for indenting.

@param size the number of spaces to use as the tab string @throws IllegalArgumentException if the size is non-positive

Implementation

void setTab(int size) {
  if (size <= 0) throw ArgumentError("Tab count must be positive");
  this.indentTabStr = stringOfChar(' ', size);
}