我收到了关于以下代码的警告,我不知道为什么。getCallNo(String phoneNo) { if (item.containsKey(phoneNo)) { } return 0;警告是:
This function has a return type of 'int', but doesn'tend with a return
我正在使用showDialog函数构建一个对话框,但我需要避免当用户按下后退按钮时,对话框没有关闭,这是我的代码: barrierDismissible: false, // return object of type Dialogreturn AlertDialog(
title: new Text(&