length property

int length

The length of the word, calculated from start and end dynamically.

Implementation

int get length => end - start + 1;