diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart index df7b6d07fdc4..74420f97cd6b 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/lib/src/method_channel/method_channel_google_maps_flutter.dart @@ -189,7 +189,7 @@ class MethodChannelGoogleMapsFlutter extends GoogleMapsFlutterPlatform { break; case 'tileOverlay#getTile': final TileOverlay tileOverlay = _tileOverlays[mapId]; - assert(tileOverlay.tileProvider != null); + assert(tileOverlay.tileProvider.getTile != null); final Tile tile = await tileOverlay.tileProvider.getTile( call.arguments['x'], call.arguments['y'],