getParams() {
Map<String, dynamic> map = <String, dynamic>{};
if (widget.type == 1) {
map = {
'userId': UserInfoUtil().getSelfUserIdInt(),
'country':
Global.countryGlobal.country_short_code ?? Global.COUNTRY_ALL,
'page': liveUserPage,
'size': liveUserPageSize
};
} else if (widget.type == 2) {
map = {
"isRandom": 0,
"page": liveUserPage,
"size": liveUserPageSize,
"country":
Global.countryGlobal.country_short_code ?? Global.COUNTRY_ALL,
};
}
return map;
}
flutter Map<String, dynamic>类型
最新推荐文章于 2024-03-23 22:20:53 发布