If the interface data in flutter is too large, the terminal will only print a part of the data, but sometimes you need to see all the data.
The terminal prints normally
//json表示接口返回的数据
print("json : $json");
All interface data is printed out
//json表示接口返回的数据
//全部打印
import 'dart:convert';
import 'dart:developer';
log(jsonEncode(json),name:"做标记,方便终端查看");
如果提示格式错误的话,转String打印
log(dataInfo.toString());