title: Trim String/Text in Flutter
body: <p>Hi I tried to trim a link in flutter</p>
  
  <p>Currently I am looking into regexp but I think that is not possible</p>
  
  <p>This is the link in full:</p>
  
  <p><code>http://sales.local/api/v1/payments/454/ticket/verify?token=jhvycygvjhbknm.eyJpc3MiOiJodH</code></p>
  
  <p>What I am trying to do is to trim the link like this: </p>
  
  <p><code>http://sales.local/api/v1/payments/454</code></p>
  
  <p>Kindly advise on best practise to trim string/text in flutter. Thanks!</p>