首页 > 其他分享 >Flutter 开发:字符串

Flutter 开发:字符串

时间:2022-10-21 15:02:20浏览次数:48  
标签:String int var 开发 str 字符串 Flutter

赋值 String str1 = 'value' 或者 var str1 = "value"
字符串合并 var str = "a" + "b"
转为字符串 var str = 1.toString()
字符串比较 int result = "a".compareTo("b")
字符串长度 str.length
字符串截取 String substring(int start, [int? end])
字符串转数组 List split(Pattern pattern);
数组转为字符串 a.join(',')

标签:String,int,var,开发,str,字符串,Flutter
From: https://www.cnblogs.com/dulinshun/p/flutter-kai-fa-zi-fu-chuan.html

相关文章