Flutter toCharArray

/// 字符串工具
extension StringUtil on String {
  List<String> toCharList() {
    return this.runes.map((e) => String.fromCharCode(e)).toList();
  }
}

 

posted @ 2020-09-09 15:32  柏。  阅读(300)  评论(0编辑  收藏  举报