How to set read more less in Flutter?

read more/less

This is explanation of my answer in StackOverflow. To show read more/less our Text Widget will have two states.

  1. See Less
  2. See More

See less is easy, As we have to append the clickable text at the end of the string using TextSpan.