使用 VSCode 时,它会警告我TypeMatcher<T>已贬值。
来自相关的Dart API 文档。. .
TypeMatcher([@Deprecated('Provide a type argument to TypeMatcher and omit the name. ' 'This argument will be removed in the next release.') String name])
我应该用什么代替TypeMatcher<T>?
的输出Flutter --version
Flutter 1.21.0-9.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 81a45ec2e5 (3 weeks ago) • 2020-08-27 14:14:33 -0700
Engine • revision 20a9531835
Tools • Dart 2.10.0 (build 2.10.0-7.3.beta)
