From 8912c892c1213aa2c9fdd144b0067280f26bd473 Mon Sep 17 00:00:00 2001 From: Weicheng Zhu Date: Wed, 18 Aug 2021 22:19:26 +0800 Subject: [PATCH] Update mop.dart --- lib/mop.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mop.dart b/lib/mop.dart index 43aa802..537046b 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -193,9 +193,9 @@ class Mop { return handler.getUserInfo(); }; _extensionApis["getCustomMenus"] = (params) async { - final res = await handler.getCustomMenus(params["appId"]); + final res = await handler.getCustomMenus(params["appId"]); List> list = []; - res?.forEach((element) { + res.forEach((element) { Map map = Map(); map["menuId"] = element.menuId; map["image"] = element.image;