length property

int get length

The length of this text fragment in characters.

This value is cached after first calculation for performance.

Implementation

int get length => _length ??= text.length;