因此,我正在try 开始使用Riverpod,并使用"单击和计数器"默认示例创建一个新的Flutter 项目. 一旦我添加了发布规范
flutter_hooks: ^0.18.0
hooks_riverpod: ^2.0.0
和
导入‘Package:hooks_riverpod/hooks_riverpod.dart’;
我在调试控制台上收到此错误,但无法找出问题所在
: Error: Method not found: 'Error.throwWithStackTrace'.
../…/framework/provider_base.dart:904
Error.throwWithStackTrace(error, chain);
^^^^^^^^^^^^^^^^^^^
: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.
../…/framework/provider_base.dart:898
Never _rethrowProviderError(Object error, StackTrace stackTrace) {
^