init method
设置ios端的key, android端需要在manifest里面设置, 无法通过代码设置
Implementation
static Future init(String iosKey) async {
return platform(
android: (pool) async {
print('android端需要在Manifest里面设置');
},
ios: (pool) async {
final service = await AMapServices.sharedServices();
await service.set_apiKey(iosKey);
await service.set_enableHTTPS(true);
},
);
}