Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Review feedback
  • Loading branch information
stuartmorgan-g committed Sep 3, 2025
commit 65487a7493d22e206f8bf9991ea72692897f0f49
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ class FakeGoogleMapsFlutterPlatform extends GoogleMapsFlutterPlatform {
Completer<void>? initCompleter;

@override
Future<void> init(int mapId) {
if (initCompleter == null) {
return Future<void>.value();
}

return initCompleter!.future;
}
Future<void> init(int mapId) async => initCompleter?.future;

@override
Future<void> updateMapConfiguration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ void main() {

await tester.pumpWidget(Container());

// This is done to force the update path while the widget is not mounted.
// ignore:invalid_use_of_protected_member
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If something is needed for testing, it should be annotated as such, rather than having warnings suppressed at the usage site.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, I see why it has to be done this way.

googleMapState.didUpdateWidget(
GoogleMap(
Expand Down