// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast ////////////////////////////////////////////////////////// // GENERATED BY FLUTTIFY. DO NOT EDIT IT. ////////////////////////////////////////////////////////// import 'dart:typed_data'; import 'package:amap_location_fluttify/src/ios/ios.export.g.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:foundation_fluttify/foundation_fluttify.dart'; import 'package:core_location_fluttify/core_location_fluttify.dart'; import 'package:amap_core_fluttify/amap_core_fluttify.dart'; class AMapLocationReGeocode extends NSObject with NSCoding, NSCopying { //region constants static const String name__ = 'AMapLocationReGeocode'; @override final String tag__ = 'amap_location_fluttify'; //endregion //region creators static Future create__({ bool init = true /* ios only */ }) async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod( 'ObjectFactory::createAMapLocationReGeocode', {'init': init} ); return AmapLocationFluttifyIOSAs(__result__)!; } static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { assert(true); final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod( 'ObjectFactory::create_batchAMapLocationReGeocode', {'length': length, 'init': init} ); return __result_batch__ ?.map((it) => AmapLocationFluttifyIOSAs(it)) .where((element) => element !=null) .cast() .toList() ?? []; } //endregion //region getters Future get_formattedAddress() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_formattedAddress", {'__this__': this}); return __result__; } Future get_country() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_country", {'__this__': this}); return __result__; } Future get_province() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_province", {'__this__': this}); return __result__; } Future get_city() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_city", {'__this__': this}); return __result__; } Future get_district() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_district", {'__this__': this}); return __result__; } Future get_township() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_township", {'__this__': this}); return __result__; } Future get_neighborhood() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_neighborhood", {'__this__': this}); return __result__; } Future get_building() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_building", {'__this__': this}); return __result__; } Future get_citycode() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_citycode", {'__this__': this}); return __result__; } Future get_adcode() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_adcode", {'__this__': this}); return __result__; } Future get_street() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_street", {'__this__': this}); return __result__; } Future get_number() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_number", {'__this__': this}); return __result__; } Future get_POIName() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_POIName", {'__this__': this}); return __result__; } Future get_AOIName() async { final __result__ = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_AOIName", {'__this__': this}); return __result__; } //endregion //region setters Future set_formattedAddress(String formattedAddress) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_formattedAddress', {'__this__': this, "formattedAddress": formattedAddress}); } Future set_country(String country) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_country', {'__this__': this, "country": country}); } Future set_province(String province) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_province', {'__this__': this, "province": province}); } Future set_city(String city) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_city', {'__this__': this, "city": city}); } Future set_district(String district) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_district', {'__this__': this, "district": district}); } Future set_township(String township) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_township', {'__this__': this, "township": township}); } Future set_neighborhood(String neighborhood) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_neighborhood', {'__this__': this, "neighborhood": neighborhood}); } Future set_building(String building) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_building', {'__this__': this, "building": building}); } Future set_citycode(String citycode) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_citycode', {'__this__': this, "citycode": citycode}); } Future set_adcode(String adcode) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_adcode', {'__this__': this, "adcode": adcode}); } Future set_street(String street) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_street', {'__this__': this, "street": street}); } Future set_number(String number) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_number', {'__this__': this, "number": number}); } Future set_POIName(String POIName) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_POIName', {'__this__': this, "POIName": POIName}); } Future set_AOIName(String AOIName) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_AOIName', {'__this__': this, "AOIName": AOIName}); } //endregion //region methods //endregion @override String toString() { return 'AMapLocationReGeocode{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; } } extension AMapLocationReGeocode_Batch on List { String? get refId { if (isEmpty) return null; return first?.refId; } //region getters Future> get_formattedAddress_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_formattedAddress_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_country_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_country_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_province_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_province_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_city_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_district_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_district_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_township_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_township_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_neighborhood_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_neighborhood_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_building_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_building_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_citycode_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_adcode_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_street_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_street_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_number_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_number_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_POIName_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_POIName_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_AOIName_batch() async { final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod("AMapLocationReGeocode::get_AOIName_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } //endregion //region setters Future set_formattedAddress_batch(List formattedAddress) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_formattedAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "formattedAddress": formattedAddress[__i__]}]); } Future set_country_batch(List country) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_country_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "country": country[__i__]}]); } Future set_province_batch(List province) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_province_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "province": province[__i__]}]); } Future set_city_batch(List city) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]); } Future set_district_batch(List district) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_district_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "district": district[__i__]}]); } Future set_township_batch(List township) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_township_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "township": township[__i__]}]); } Future set_neighborhood_batch(List neighborhood) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_neighborhood_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "neighborhood": neighborhood[__i__]}]); } Future set_building_batch(List building) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_building_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "building": building[__i__]}]); } Future set_citycode_batch(List citycode) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]); } Future set_adcode_batch(List adcode) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]); } Future set_street_batch(List street) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_street_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "street": street[__i__]}]); } Future set_number_batch(List number) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_number_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "number": number[__i__]}]); } Future set_POIName_batch(List POIName) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_POIName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "POIName": POIName[__i__]}]); } Future set_AOIName_batch(List AOIName) async { await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationReGeocode::set_AOIName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "AOIName": AOIName[__i__]}]); } //endregion //region methods //endregion }