Google Maps - ‘double java.lang.Double.doubleValue()’ on a null object reference - IOS

Hi,

I am implementing google maps in a flutter project.
All run ok on Android but when using IOS (changing the Platform to IOS in Flutter Inspector) it does not display the map and gives me following error.

- Error Messages

E/MethodChannel#flutter/platform_views(11727): java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
E/MethodChannel#flutter/platform_views(11727): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:86)
E/MethodChannel#flutter/platform_views(11727): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/MethodChannel#flutter/platform_views(11727): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#flutter/platform_views(11727): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter/platform_views(11727): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#flutter/platform_views(11727): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/platform_views(11727): 	at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#flutter/platform_views(11727): 	at android.os.Looper.loop(Looper.java:160)
E/MethodChannel#flutter/platform_views(11727): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/MethodChannel#flutter/platform_views(11727): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/platform_views(11727): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/MethodChannel#flutter/platform_views(11727): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter (11727): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
E/flutter (11727): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:86)
E/flutter (11727): 	at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/flutter (11727): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter (11727): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter (11727): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/flutter (11727): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (11727): 	at android.os.MessageQueue.next(MessageQueue.java:326)
E/flutter (11727): 	at android.os.Looper.loop(Looper.java:160)
E/flutter (11727): 	at android.app.ActivityThread.main(ActivityThread.java:6669)
E/flutter (11727): 	at java.lang.reflect.Method.invoke(Native Method)
E/flutter (11727): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/flutter (11727): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
E/flutter (11727): )
E/flutter (11727): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582:7)
E/flutter (11727): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)
E/flutter (11727): <asynchronous suspension>
E/flutter (11727): #2      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter (11727): #3      PlatformViewsService.initUiKitView (package:flutter/src/services/platform_views.dart:219:41)
E/flutter (11727): #4      _UiKitViewState._createNewUiKitView (package:flutter/src/widgets/platform_view.dart:624:71)
E/flutter (11727): #5      _UiKitViewState._initializeOnce (package:flutter/src/widgets/platform_view.dart:574:5)
E/flutter (11727): #6      _UiKitViewState.didChangeDependencies (package:flutter/src/widgets/platform_view.dart:584:5)
E/flutter (11727): #7      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4786:12)
E/flutter (11727): #8      ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter (11727): #9      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (11727): #10     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (11727): #11     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter (11727): #12     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4800:11)
E/flutter (11727): #13     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter (11727): #14     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter (11727): #15     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4791:11)
E/flutter (11727): #16     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter (11727): #17     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (11727): #18     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (11727): #19     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6118:14)
E/flutter (11727): #20     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (11727): #21     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (11727): #22     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6118:14)
E/flutter (11727): #23     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (11727): #24     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (11727): #25     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter (11727): #26     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter (11727): #27     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter (11727): #28     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter (11727): #29     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (11727): #30     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (11727): #31     ComponentElement.performRe ```