Flutter Dart 语法

犹鱼得水
2022年06月16日 · 阅读 51
1,删除list 其中一条
list.removeWhere((element) => bool );
2,mac 快捷提取公共代码块
option + command + V
3,两个list 比对
var ids = List1.map((e) => e.toSet();
ids.contains(List2());
4,比对list中是否含有某个map
List.any((element) => element == map)
5,取list中某个条件的并返回 迭代器
List.where((e) => e["isCheck"]).map((e) => e['id']).join(',');
分类:
flutter
标签:
无
本文作者:犹鱼得水