我正在开发一个Flutter应用程序,并且在logcat中不断收到这个错误字符串。Failed assertion: boolean expression must not be null@override direction: Axis.vertical,
children: (list_two = null
在这段代码中,当使用player->giveOptions() (返回整数,而不是布尔值)初始化toPurchase时,它将从整数转换为布尔值。之后,有一个switch(toPurchase),然后编译器说它不能工作,因为toPurchase已经被转换为bool。为什么?int loc = player->giveOptions(4,"Trainers","Market","Inn","Back","");
int cho