truncateTo method

void truncateTo(
  1. int length
)

Clamps the reveal when the source shrank to a prefix of itself.

Implementation

void truncateTo(int length) {
  if (_revealed > length) {
    _revealed = length.toDouble();
  }
}