setApiKey static method

void setApiKey(
  1. String androidKey,
  2. String iosKey
)

设置Android和iOS的apikey,建议在weigdet初始化时设置
apiKey的申请请参考高德开放平台官网
Android端: https://lbs.amap.com/api/android-location-sdk/guide/create-project/get-key
iOS端: https://lbs.amap.com/api/ios-location-sdk/guide/create-project/get-key
androidKey Android平台的key
iosKey ios平台的key

Implementation

static void setApiKey(String androidKey, String iosKey) {
  _methodChannel
      .invokeMethod('setApiKey', {'android': androidKey, 'ios': iosKey});
}