morphingText method
TextProperties
morphingText(
- TextProperties textProperties
inherited
The motion on text which is same in current and next text in list
Should return a TextProperties
Implementation
TextProperties morphingText(TextProperties textProperties) {
return textProperties.copyWith(
offsetY: 0,
opacity: 1,
offsetX: textProperties.offsetX -
((textProperties.offsetX - textProperties.toX) * progress),
);
}