Use dart analyze package for num.clamp (#139867)

Extacted from #130101, dropped the `@_debugAssert` stuff from that PR so it's easier to review.
This commit is contained in:
LongCatIsLooong
2023-12-11 12:25:26 -08:00
committed by GitHub
parent 44beb843aa
commit aa609127e7
21 changed files with 283 additions and 98 deletions

View File

@@ -108,9 +108,7 @@ void foundError(List<String> messages) {
_pendingLogs.clear();
_errorMessages.add(messages);
_hasError = true;
if (onError != null) {
onError!();
}
onError?.call();
}
@visibleForTesting