fix type error in service_worker_test.dart (#99524)

This commit is contained in:
Christopher Fujino 2022-03-04 11:56:17 -08:00 committed by GitHub
parent 852bfe2a73
commit 09c7eb1b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,8 @@ Future<void> _rebuildApp({ required int version }) async {
/// test zone.
void expect(Object? actual, Object? expected) {
final Matcher matcher = wrapMatcher(expected);
final Map<Object, Object> matchState = <Object, Object>{};
// matchState needs to be of type <Object?, Object?>, see https://github.com/flutter/flutter/issues/99522
final Map<Object?, Object?> matchState = <Object?, Object?>{};
if (matcher.matches(actual, matchState)) {
return;
}