tick method
Implementation
@override
void tick() {
clearLine();
write(text.substring(0, _index));
if (_index >= text.length) {
if (loop) {
_index = 0;
} else {
stop();
return;
}
}
_index++;
}
@override
void tick() {
clearLine();
write(text.substring(0, _index));
if (_index >= text.length) {
if (loop) {
_index = 0;
} else {
stop();
return;
}
}
_index++;
}