title: How to add substring range in Flutter if the word is less than the range | Flutter
body: <pre><code>Text('simply dummy text for printing '.substring(0, 12),),
  </code></pre>
  <p>i want to print a text from a range 0 to 12 characters. From the above code it works fine if it has more than 12 characters. But if it is less than 12 characters it gives the error value not in range:12. How to print the whole line if the character is less than 12 without showing the range error.</p>