从Map上删除所有数据。
clear - 语法
Map.clear()
clear - 示例
void main() { Map m={'name':'Learnfk','Id':'E1001'}; print('Map :${m}'); m.clear(); print('Map after invoking clear() :${m}'); }
它将产生以下输出-
Map :{name: Learnfk, Id: E1001} Map after invoking clear() :{}
参考链接
https://www.learnfk.com/dart-programming/dart-programming-map-function-clear.html
标签:Map,clear,after,无涯,Dart,print,dart,E1001 From: https://blog.51cto.com/u_14033984/8417676