length property

int get length

The length of the full string.

Implementation

int get length => parts.fold(0, (sum, part) => sum + part.val.length);