Dart / Flutter; substring 0 to 30, but only if there is over 30 carecters

后端 未结 0 1135
耶瑟儿~
耶瑟儿~ 2020-11-22 15:32

I have a little problem, I want to substring a String, to max 30 characters, but when I do string.substring(0, 30), it works fine if the string is 30+ character

相关标签:
回答
  • 消灭零回复
提交回复
热议问题