Flutter错误信息 type 'RxBool' is not a subtype of type 'bool' in type cast

546 阅读1分钟

解决方法:

示例代码:

final isCheck = false.obs;
state.isCheck.value ? () => logic.registerFnc() :null,

只需要调用isCheck 的时候加上.value 即可;