未验证 提交 73e1fb21 编写于 作者: F Ferhat 提交者: GitHub

Fix withIn matcher distance function lookup (#13904)

上级 df2db642
......@@ -138,12 +138,12 @@ Matcher within<T>({
@required T from,
DistanceFunction<T> distanceFunction,
}) {
distanceFunction ??= _kStandardDistanceFunctions[from.runtimeType];
distanceFunction ??= _kStandardDistanceFunctions[T];
if (distanceFunction == null) {
throw ArgumentError(
'The specified distanceFunction was null, and a standard distance '
'function was not found for type ${from.runtimeType} of the provided '
'function was not found for type ${T} of the provided '
'`from` argument.');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册