fix type error in service_worker_test.dart (#99524)
This commit is contained in:
parent
852bfe2a73
commit
09c7eb1b88
@ -57,7 +57,8 @@ Future<void> _rebuildApp({ required int version }) async {
|
|||||||
/// test zone.
|
/// test zone.
|
||||||
void expect(Object? actual, Object? expected) {
|
void expect(Object? actual, Object? expected) {
|
||||||
final Matcher matcher = wrapMatcher(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)) {
|
if (matcher.matches(actual, matchState)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user