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;