该库是遗留的,不应该导入到空安全库中。 解决方案: 1.输入dart pub outdated --mode=null-safety 2.输入dart pub upgrade --null-safety将所有依赖项升级为空安全。