getIndent function

int getIndent(
  1. String line
)

Gets the number of whitespace characters at the beginning of a line.

Implementation

int getIndent(String line) => line.length - line.trimLeft().length;