type 'Null' is not a subtype of type 'bool' 类型不对 解决方法 判断返回的类型是否正确 print('类型:${data['isDayTime'].runtimeType}');