amap_search_fluttify

This commit is contained in:
2024-11-17 15:59:37 +08:00
commit 731cf46ce1
435 changed files with 218481 additions and 0 deletions

181
lib/src/ios/AMapAOI.g.dart Normal file
View File

@ -0,0 +1,181 @@
// 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_search_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 AMapAOI extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapAOI';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapAOI> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapAOI',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapAOI>(__result__)!;
}
static Future<List<AMapAOI>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapAOI',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapAOI>(it))
.where((element) => element !=null)
.cast<AMapAOI>()
.toList() ?? <AMapAOI>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_adcode", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<double?> get_area() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_area", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_area(double area) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_area', <String, dynamic>{'__this__': this, "area": area});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapAOI{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapAOI_Batch on List<AMapAOI?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<double?>> get_area_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAOI::get_area_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_area_batch(List<double> area) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAOI::set_area_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "area": area[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,341 @@
// 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_search_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 AMapAddressComponent extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapAddressComponent';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapAddressComponent> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapAddressComponent',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapAddressComponent>(__result__)!;
}
static Future<List<AMapAddressComponent>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapAddressComponent',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapAddressComponent>(it))
.where((element) => element !=null)
.cast<AMapAddressComponent>()
.toList() ?? <AMapAddressComponent>[];
}
//endregion
//region getters
Future<String?> get_country() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_country", {'__this__': this});
return __result__;
}
Future<String?> get_countryCode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_countryCode", {'__this__': this});
return __result__;
}
Future<String?> get_province() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_province", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_citycode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_citycode", {'__this__': this});
return __result__;
}
Future<String?> get_district() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_district", {'__this__': this});
return __result__;
}
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_township() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_township", {'__this__': this});
return __result__;
}
Future<String?> get_towncode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_towncode", {'__this__': this});
return __result__;
}
Future<String?> get_neighborhood() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_neighborhood", {'__this__': this});
return __result__;
}
Future<String?> get_building() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_building", {'__this__': this});
return __result__;
}
Future<AMapStreetNumber?> get_streetNumber() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_streetNumber", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapStreetNumber>(__result__);
}
Future<List<AMapBusinessArea>?> get_businessAreas() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_businessAreas", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusinessArea>(it)).where((e) => e != null).cast<AMapBusinessArea>().toList();
}
//endregion
//region setters
Future<void> set_country(String country) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_country', <String, dynamic>{'__this__': this, "country": country});
}
Future<void> set_countryCode(String countryCode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_countryCode', <String, dynamic>{'__this__': this, "countryCode": countryCode});
}
Future<void> set_province(String province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_province', <String, dynamic>{'__this__': this, "province": province});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_citycode(String citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
}
Future<void> set_district(String district) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_district', <String, dynamic>{'__this__': this, "district": district});
}
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_township(String township) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_township', <String, dynamic>{'__this__': this, "township": township});
}
Future<void> set_towncode(String towncode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_towncode', <String, dynamic>{'__this__': this, "towncode": towncode});
}
Future<void> set_neighborhood(String neighborhood) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_neighborhood', <String, dynamic>{'__this__': this, "neighborhood": neighborhood});
}
Future<void> set_building(String building) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_building', <String, dynamic>{'__this__': this, "building": building});
}
Future<void> set_streetNumber(AMapStreetNumber streetNumber) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_streetNumber', <String, dynamic>{'__this__': this, "streetNumber": streetNumber});
}
Future<void> set_businessAreas(List<AMapBusinessArea> businessAreas) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_businessAreas', <String, dynamic>{'__this__': this, "businessAreas": businessAreas});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapAddressComponent{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapAddressComponent_Batch on List<AMapAddressComponent?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_country_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_country_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_countryCode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_countryCode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_province_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_province_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_citycode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_district_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_district_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_township_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_township_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_towncode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_towncode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_neighborhood_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_neighborhood_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_building_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_building_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapStreetNumber?>> get_streetNumber_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_streetNumber_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapStreetNumber>(__result__)).cast<AMapStreetNumber?>().toList();
}
Future<List<List<AMapBusinessArea>?>> get_businessAreas_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapAddressComponent::get_businessAreas_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusinessArea>(it)).where((e) => e != null).cast<AMapBusinessArea>().toList()).cast<List<AMapBusinessArea>?>().toList();
}
//endregion
//region setters
Future<void> set_country_batch(List<String> country) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_country_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "country": country[__i__]}]);
}
Future<void> set_countryCode_batch(List<String> countryCode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_countryCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "countryCode": countryCode[__i__]}]);
}
Future<void> set_province_batch(List<String> province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_province_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "province": province[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_citycode_batch(List<String> citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
}
Future<void> set_district_batch(List<String> district) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_district_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "district": district[__i__]}]);
}
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_township_batch(List<String> township) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_township_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "township": township[__i__]}]);
}
Future<void> set_towncode_batch(List<String> towncode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_towncode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "towncode": towncode[__i__]}]);
}
Future<void> set_neighborhood_batch(List<String> neighborhood) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_neighborhood_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "neighborhood": neighborhood[__i__]}]);
}
Future<void> set_building_batch(List<String> building) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_building_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "building": building[__i__]}]);
}
Future<void> set_streetNumber_batch(List<AMapStreetNumber> streetNumber) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_streetNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "streetNumber": streetNumber[__i__]}]);
}
Future<void> set_businessAreas_batch(List<List<AMapBusinessArea>> businessAreas) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapAddressComponent::set_businessAreas_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "businessAreas": businessAreas[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,481 @@
// 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_search_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 AMapBusLine extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusLine';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusLine> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusLine',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusLine>(__result__)!;
}
static Future<List<AMapBusLine>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusLine',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it))
.where((element) => element !=null)
.cast<AMapBusLine>()
.toList() ?? <AMapBusLine>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_type() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_type", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_polyline() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_polyline", {'__this__': this});
return __result__;
}
Future<String?> get_citycode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_citycode", {'__this__': this});
return __result__;
}
Future<String?> get_startStop() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startStop", {'__this__': this});
return __result__;
}
Future<String?> get_endStop() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endStop", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_startTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startTime", {'__this__': this});
return __result__;
}
Future<String?> get_endTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endTime", {'__this__': this});
return __result__;
}
Future<String?> get_company() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_company", {'__this__': this});
return __result__;
}
Future<double?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_distance", {'__this__': this});
return __result__;
}
Future<double?> get_basicPrice() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_basicPrice", {'__this__': this});
return __result__;
}
Future<double?> get_totalPrice() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_totalPrice", {'__this__': this});
return __result__;
}
Future<AMapGeoPolygon?> get_bounds() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_bounds", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__);
}
Future<List<AMapBusStop>?> get_busStops() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_busStops", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList();
}
Future<AMapBusStop?> get_departureStop() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_departureStop", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapBusStop>(__result__);
}
Future<AMapBusStop?> get_arrivalStop() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_arrivalStop", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapBusStop>(__result__);
}
Future<List<AMapBusStop>?> get_viaBusStops() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_viaBusStops", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList();
}
Future<int?> get_duration() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_duration", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_type(String type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_type', <String, dynamic>{'__this__': this, "type": type});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_polyline(String polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_polyline', <String, dynamic>{'__this__': this, "polyline": polyline});
}
Future<void> set_citycode(String citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
}
Future<void> set_startStop(String startStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startStop', <String, dynamic>{'__this__': this, "startStop": startStop});
}
Future<void> set_endStop(String endStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endStop', <String, dynamic>{'__this__': this, "endStop": endStop});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_startTime(String startTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startTime', <String, dynamic>{'__this__': this, "startTime": startTime});
}
Future<void> set_endTime(String endTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endTime', <String, dynamic>{'__this__': this, "endTime": endTime});
}
Future<void> set_company(String company) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_company', <String, dynamic>{'__this__': this, "company": company});
}
Future<void> set_distance(double distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_basicPrice(double basicPrice) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_basicPrice', <String, dynamic>{'__this__': this, "basicPrice": basicPrice});
}
Future<void> set_totalPrice(double totalPrice) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_totalPrice', <String, dynamic>{'__this__': this, "totalPrice": totalPrice});
}
Future<void> set_bounds(AMapGeoPolygon bounds) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_bounds', <String, dynamic>{'__this__': this, "bounds": bounds});
}
Future<void> set_busStops(List<AMapBusStop> busStops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_busStops', <String, dynamic>{'__this__': this, "busStops": busStops});
}
Future<void> set_departureStop(AMapBusStop departureStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_departureStop', <String, dynamic>{'__this__': this, "departureStop": departureStop});
}
Future<void> set_arrivalStop(AMapBusStop arrivalStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_arrivalStop', <String, dynamic>{'__this__': this, "arrivalStop": arrivalStop});
}
Future<void> set_viaBusStops(List<AMapBusStop> viaBusStops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_viaBusStops', <String, dynamic>{'__this__': this, "viaBusStops": viaBusStops});
}
Future<void> set_duration(int duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusLine{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusLine_Batch on List<AMapBusLine?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_type_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_type_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_polyline_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_polyline_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_citycode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_startStop_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_endStop_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_startTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_endTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_endTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_company_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_company_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<double?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<double?>> get_basicPrice_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_basicPrice_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<double?>> get_totalPrice_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_totalPrice_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<AMapGeoPolygon?>> get_bounds_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_bounds_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__)).cast<AMapGeoPolygon?>().toList();
}
Future<List<List<AMapBusStop>?>> get_busStops_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_busStops_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList()).cast<List<AMapBusStop>?>().toList();
}
Future<List<AMapBusStop?>> get_departureStop_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_departureStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapBusStop>(__result__)).cast<AMapBusStop?>().toList();
}
Future<List<AMapBusStop?>> get_arrivalStop_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_arrivalStop_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapBusStop>(__result__)).cast<AMapBusStop?>().toList();
}
Future<List<List<AMapBusStop>?>> get_viaBusStops_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_viaBusStops_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList()).cast<List<AMapBusStop>?>().toList();
}
Future<List<int?>> get_duration_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLine::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_type_batch(List<String> type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "type": type[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_polyline_batch(List<String> polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_polyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polyline": polyline[__i__]}]);
}
Future<void> set_citycode_batch(List<String> citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
}
Future<void> set_startStop_batch(List<String> startStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startStop": startStop[__i__]}]);
}
Future<void> set_endStop_batch(List<String> endStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endStop": endStop[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_startTime_batch(List<String> startTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]);
}
Future<void> set_endTime_batch(List<String> endTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_endTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "endTime": endTime[__i__]}]);
}
Future<void> set_company_batch(List<String> company) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_company_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "company": company[__i__]}]);
}
Future<void> set_distance_batch(List<double> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_basicPrice_batch(List<double> basicPrice) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_basicPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "basicPrice": basicPrice[__i__]}]);
}
Future<void> set_totalPrice_batch(List<double> totalPrice) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_totalPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "totalPrice": totalPrice[__i__]}]);
}
Future<void> set_bounds_batch(List<AMapGeoPolygon> bounds) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_bounds_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "bounds": bounds[__i__]}]);
}
Future<void> set_busStops_batch(List<List<AMapBusStop>> busStops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_busStops_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "busStops": busStops[__i__]}]);
}
Future<void> set_departureStop_batch(List<AMapBusStop> departureStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_departureStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "departureStop": departureStop[__i__]}]);
}
Future<void> set_arrivalStop_batch(List<AMapBusStop> arrivalStop) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_arrivalStop_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "arrivalStop": arrivalStop[__i__]}]);
}
Future<void> set_viaBusStops_batch(List<List<AMapBusStop>> viaBusStops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_viaBusStops_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "viaBusStops": viaBusStops[__i__]}]);
}
Future<void> set_duration_batch(List<int> duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLine::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,161 @@
// 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_search_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 AMapBusLineBaseSearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusLineBaseSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusLineBaseSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusLineBaseSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusLineBaseSearchRequest>(__result__)!;
}
static Future<List<AMapBusLineBaseSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusLineBaseSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLineBaseSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapBusLineBaseSearchRequest>()
.toList() ?? <AMapBusLineBaseSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_city", {'__this__': this});
return __result__;
}
Future<bool?> get_requireExtension() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_requireExtension", {'__this__': this});
return __result__;
}
Future<int?> get_offset() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_offset", {'__this__': this});
return __result__;
}
Future<int?> get_page() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_page", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_requireExtension(bool requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_requireExtension', <String, dynamic>{'__this__': this, "requireExtension": requireExtension});
}
Future<void> set_offset(int offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_offset', <String, dynamic>{'__this__': this, "offset": offset});
}
Future<void> set_page(int page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_page', <String, dynamic>{'__this__': this, "page": page});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusLineBaseSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusLineBaseSearchRequest_Batch on List<AMapBusLineBaseSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_requireExtension_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_requireExtension_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<int?>> get_offset_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_offset_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_page_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineBaseSearchRequest::get_page_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_requireExtension_batch(List<bool> requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_requireExtension_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireExtension": requireExtension[__i__]}]);
}
Future<void> set_offset_batch(List<int> offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_offset_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "offset": offset[__i__]}]);
}
Future<void> set_page_batch(List<int> page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineBaseSearchRequest::set_page_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "page": page[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,101 @@
// 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_search_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 AMapBusLineIDSearchRequest extends AMapBusLineBaseSearchRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusLineIDSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusLineIDSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusLineIDSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusLineIDSearchRequest>(__result__)!;
}
static Future<List<AMapBusLineIDSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusLineIDSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLineIDSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapBusLineIDSearchRequest>()
.toList() ?? <AMapBusLineIDSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineIDSearchRequest::get_uid", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineIDSearchRequest::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusLineIDSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusLineIDSearchRequest_Batch on List<AMapBusLineIDSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineIDSearchRequest::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineIDSearchRequest::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,101 @@
// 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_search_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 AMapBusLineNameSearchRequest extends AMapBusLineBaseSearchRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusLineNameSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusLineNameSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusLineNameSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusLineNameSearchRequest>(__result__)!;
}
static Future<List<AMapBusLineNameSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusLineNameSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLineNameSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapBusLineNameSearchRequest>()
.toList() ?? <AMapBusLineNameSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineNameSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineNameSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusLineNameSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusLineNameSearchRequest_Batch on List<AMapBusLineNameSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineNameSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineNameSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapBusLineSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusLineSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusLineSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusLineSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusLineSearchResponse>(__result__)!;
}
static Future<List<AMapBusLineSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusLineSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLineSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapBusLineSearchResponse>()
.toList() ?? <AMapBusLineSearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineSearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<AMapSuggestion?> get_suggestion() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineSearchResponse::get_suggestion", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapSuggestion>(__result__);
}
Future<List<AMapBusLine>?> get_buslines() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineSearchResponse::get_buslines", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it)).where((e) => e != null).cast<AMapBusLine>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineSearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_suggestion(AMapSuggestion suggestion) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineSearchResponse::set_suggestion', <String, dynamic>{'__this__': this, "suggestion": suggestion});
}
Future<void> set_buslines(List<AMapBusLine> buslines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineSearchResponse::set_buslines', <String, dynamic>{'__this__': this, "buslines": buslines});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusLineSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusLineSearchResponse_Batch on List<AMapBusLineSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineSearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapSuggestion?>> get_suggestion_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineSearchResponse::get_suggestion_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapSuggestion>(__result__)).cast<AMapSuggestion?>().toList();
}
Future<List<List<AMapBusLine>?>> get_buslines_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineSearchResponse::get_buslines_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it)).where((e) => e != null).cast<AMapBusLine>().toList()).cast<List<AMapBusLine>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineSearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_suggestion_batch(List<AMapSuggestion> suggestion) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineSearchResponse::set_suggestion_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "suggestion": suggestion[__i__]}]);
}
Future<void> set_buslines_batch(List<List<AMapBusLine>> buslines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineSearchResponse::set_buslines_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "buslines": buslines[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,221 @@
// 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_search_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 AMapBusStop extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusStop';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusStop> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusStop',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusStop>(__result__)!;
}
static Future<List<AMapBusStop>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusStop',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it))
.where((element) => element !=null)
.cast<AMapBusStop>()
.toList() ?? <AMapBusStop>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_citycode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_citycode", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<List<AMapBusLine>?> get_buslines() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_buslines", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it)).where((e) => e != null).cast<AMapBusLine>().toList();
}
Future<String?> get_sequence() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_sequence", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_citycode(String citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_buslines(List<AMapBusLine> buslines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_buslines', <String, dynamic>{'__this__': this, "buslines": buslines});
}
Future<void> set_sequence(String sequence) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_sequence', <String, dynamic>{'__this__': this, "sequence": sequence});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusStop{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusStop_Batch on List<AMapBusStop?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_citycode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<List<AMapBusLine>?>> get_buslines_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_buslines_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it)).where((e) => e != null).cast<AMapBusLine>().toList()).cast<List<AMapBusLine>?>().toList();
}
Future<List<String?>> get_sequence_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStop::get_sequence_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_citycode_batch(List<String> citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_buslines_batch(List<List<AMapBusLine>> buslines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_buslines_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "buslines": buslines[__i__]}]);
}
Future<void> set_sequence_batch(List<String> sequence) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStop::set_sequence_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sequence": sequence[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,161 @@
// 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_search_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 AMapBusStopSearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusStopSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusStopSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusStopSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusStopSearchRequest>(__result__)!;
}
static Future<List<AMapBusStopSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusStopSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStopSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapBusStopSearchRequest>()
.toList() ?? <AMapBusStopSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_city", {'__this__': this});
return __result__;
}
Future<int?> get_offset() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_offset", {'__this__': this});
return __result__;
}
Future<int?> get_page() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_page", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_offset(int offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_offset', <String, dynamic>{'__this__': this, "offset": offset});
}
Future<void> set_page(int page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_page', <String, dynamic>{'__this__': this, "page": page});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusStopSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusStopSearchRequest_Batch on List<AMapBusStopSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_offset_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_offset_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_page_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchRequest::get_page_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_offset_batch(List<int> offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_offset_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "offset": offset[__i__]}]);
}
Future<void> set_page_batch(List<int> page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchRequest::set_page_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "page": page[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapBusStopSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusStopSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusStopSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusStopSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusStopSearchResponse>(__result__)!;
}
static Future<List<AMapBusStopSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusStopSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStopSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapBusStopSearchResponse>()
.toList() ?? <AMapBusStopSearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<AMapSuggestion?> get_suggestion() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchResponse::get_suggestion", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapSuggestion>(__result__);
}
Future<List<AMapBusStop>?> get_busstops() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchResponse::get_busstops", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_suggestion(AMapSuggestion suggestion) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchResponse::set_suggestion', <String, dynamic>{'__this__': this, "suggestion": suggestion});
}
Future<void> set_busstops(List<AMapBusStop> busstops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchResponse::set_busstops', <String, dynamic>{'__this__': this, "busstops": busstops});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusStopSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusStopSearchResponse_Batch on List<AMapBusStopSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapSuggestion?>> get_suggestion_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchResponse::get_suggestion_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapSuggestion>(__result__)).cast<AMapSuggestion?>().toList();
}
Future<List<List<AMapBusStop>?>> get_busstops_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusStopSearchResponse::get_busstops_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusStop>(it)).where((e) => e != null).cast<AMapBusStop>().toList()).cast<List<AMapBusStop>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_suggestion_batch(List<AMapSuggestion> suggestion) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchResponse::set_suggestion_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "suggestion": suggestion[__i__]}]);
}
Future<void> set_busstops_batch(List<List<AMapBusStop>> busstops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusStopSearchResponse::set_busstops_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "busstops": busstops[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapBusinessArea extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapBusinessArea';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapBusinessArea> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapBusinessArea',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapBusinessArea>(__result__)!;
}
static Future<List<AMapBusinessArea>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapBusinessArea',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapBusinessArea>(it))
.where((element) => element !=null)
.cast<AMapBusinessArea>()
.toList() ?? <AMapBusinessArea>[];
}
//endregion
//region getters
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusinessArea::get_name", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusinessArea::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
//endregion
//region setters
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusinessArea::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusinessArea::set_location', <String, dynamic>{'__this__': this, "location": location});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapBusinessArea{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapBusinessArea_Batch on List<AMapBusinessArea?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusinessArea::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusinessArea::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
//endregion
//region setters
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusinessArea::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapBusinessArea::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
//endregion
//region methods
//endregion
}

181
lib/src/ios/AMapCity.g.dart Normal file
View File

@ -0,0 +1,181 @@
// 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_search_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 AMapCity extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCity';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCity> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCity',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCity>(__result__)!;
}
static Future<List<AMapCity>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCity',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCity>(it))
.where((element) => element !=null)
.cast<AMapCity>()
.toList() ?? <AMapCity>[];
}
//endregion
//region getters
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_citycode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_citycode", {'__this__': this});
return __result__;
}
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_adcode", {'__this__': this});
return __result__;
}
Future<int?> get_num() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_num", {'__this__': this});
return __result__;
}
Future<List<AMapDistrict>?> get_districts() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_districts", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrict>(it)).where((e) => e != null).cast<AMapDistrict>().toList();
}
//endregion
//region setters
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_citycode(String citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
}
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_num(int num) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_num', <String, dynamic>{'__this__': this, "num": num});
}
Future<void> set_districts(List<AMapDistrict> districts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_districts', <String, dynamic>{'__this__': this, "districts": districts});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCity{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCity_Batch on List<AMapCity?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_citycode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_num_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_num_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapDistrict>?>> get_districts_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCity::get_districts_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrict>(it)).where((e) => e != null).cast<AMapDistrict>().toList()).cast<List<AMapDistrict>?>().toList();
}
//endregion
//region setters
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_citycode_batch(List<String> citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
}
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_num_batch(List<int> num) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_num_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "num": num[__i__]}]);
}
Future<void> set_districts_batch(List<List<AMapDistrict>> districts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCity::set_districts_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "districts": districts[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapCloudImage extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudImage';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudImage> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudImage',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudImage>(__result__)!;
}
static Future<List<AMapCloudImage>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudImage',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudImage>(it))
.where((element) => element !=null)
.cast<AMapCloudImage>()
.toList() ?? <AMapCloudImage>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudImage::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_preurl() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudImage::get_preurl", {'__this__': this});
return __result__;
}
Future<String?> get_url() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudImage::get_url", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudImage::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_preurl(String preurl) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudImage::set_preurl', <String, dynamic>{'__this__': this, "preurl": preurl});
}
Future<void> set_url(String url) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudImage::set_url', <String, dynamic>{'__this__': this, "url": url});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudImage{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudImage_Batch on List<AMapCloudImage?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudImage::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_preurl_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudImage::get_preurl_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_url_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudImage::get_url_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudImage::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_preurl_batch(List<String> preurl) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudImage::set_preurl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "preurl": preurl[__i__]}]);
}
Future<void> set_url_batch(List<String> url) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudImage::set_url_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "url": url[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,261 @@
// 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_search_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 AMapCloudPOI extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudPOI';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudPOI> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudPOI',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudPOI>(__result__)!;
}
static Future<List<AMapCloudPOI>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudPOI',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOI>(it))
.where((element) => element !=null)
.cast<AMapCloudPOI>()
.toList() ?? <AMapCloudPOI>[];
}
//endregion
//region getters
Future<int?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_name", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_address() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_address", {'__this__': this});
return __result__;
}
Future<Map?> get_customFields() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_customFields", {'__this__': this});
return __result__;
}
Future<String?> get_createTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_createTime", {'__this__': this});
return __result__;
}
Future<String?> get_updateTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_updateTime", {'__this__': this});
return __result__;
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_distance", {'__this__': this});
return __result__;
}
Future<List<AMapCloudImage>?> get_images() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_images", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudImage>(it)).where((e) => e != null).cast<AMapCloudImage>().toList();
}
//endregion
//region setters
Future<void> set_uid(int uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_address(String address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_address', <String, dynamic>{'__this__': this, "address": address});
}
Future<void> set_customFields(Map customFields) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_customFields', <String, dynamic>{'__this__': this, "customFields": customFields});
}
Future<void> set_createTime(String createTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_createTime', <String, dynamic>{'__this__': this, "createTime": createTime});
}
Future<void> set_updateTime(String updateTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_updateTime', <String, dynamic>{'__this__': this, "updateTime": updateTime});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_images(List<AMapCloudImage> images) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_images', <String, dynamic>{'__this__': this, "images": images});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudPOI{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudPOI_Batch on List<AMapCloudPOI?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_address_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_address_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<Map?>> get_customFields_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_customFields_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<Map?>().toList();
}
Future<List<String?>> get_createTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_createTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_updateTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_updateTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapCloudImage>?>> get_images_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOI::get_images_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudImage>(it)).where((e) => e != null).cast<AMapCloudImage>().toList()).cast<List<AMapCloudImage>?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<int> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_address_batch(List<String> address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_address_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "address": address[__i__]}]);
}
Future<void> set_customFields_batch(List<Map> customFields) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_customFields_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "customFields": customFields[__i__]}]);
}
Future<void> set_createTime_batch(List<String> createTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_createTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "createTime": createTime[__i__]}]);
}
Future<void> set_updateTime_batch(List<String> updateTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_updateTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "updateTime": updateTime[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_images_batch(List<List<AMapCloudImage>> images) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOI::set_images_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "images": images[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapCloudPOIAroundSearchRequest extends AMapCloudSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudPOIAroundSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudPOIAroundSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudPOIAroundSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudPOIAroundSearchRequest>(__result__)!;
}
static Future<List<AMapCloudPOIAroundSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudPOIAroundSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOIAroundSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapCloudPOIAroundSearchRequest>()
.toList() ?? <AMapCloudPOIAroundSearchRequest>[];
}
//endregion
//region getters
Future<AMapGeoPoint?> get_center() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIAroundSearchRequest::get_center", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<int?> get_radius() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIAroundSearchRequest::get_radius", {'__this__': this});
return __result__;
}
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIAroundSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_center(AMapGeoPoint center) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIAroundSearchRequest::set_center', <String, dynamic>{'__this__': this, "center": center});
}
Future<void> set_radius(int radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIAroundSearchRequest::set_radius', <String, dynamic>{'__this__': this, "radius": radius});
}
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIAroundSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudPOIAroundSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudPOIAroundSearchRequest_Batch on List<AMapCloudPOIAroundSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPoint?>> get_center_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIAroundSearchRequest::get_center_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<int?>> get_radius_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIAroundSearchRequest::get_radius_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIAroundSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_center_batch(List<AMapGeoPoint> center) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIAroundSearchRequest::set_center_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "center": center[__i__]}]);
}
Future<void> set_radius_batch(List<int> radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIAroundSearchRequest::set_radius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "radius": radius[__i__]}]);
}
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIAroundSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,101 @@
// 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_search_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 AMapCloudPOIIDSearchRequest extends AMapCloudSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudPOIIDSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudPOIIDSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudPOIIDSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudPOIIDSearchRequest>(__result__)!;
}
static Future<List<AMapCloudPOIIDSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudPOIIDSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOIIDSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapCloudPOIIDSearchRequest>()
.toList() ?? <AMapCloudPOIIDSearchRequest>[];
}
//endregion
//region getters
Future<int?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIIDSearchRequest::get_uid", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(int uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIIDSearchRequest::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudPOIIDSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudPOIIDSearchRequest_Batch on List<AMapCloudPOIIDSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIIDSearchRequest::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<int> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIIDSearchRequest::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapCloudPOILocalSearchRequest extends AMapCloudSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudPOILocalSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudPOILocalSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudPOILocalSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudPOILocalSearchRequest>(__result__)!;
}
static Future<List<AMapCloudPOILocalSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudPOILocalSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOILocalSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapCloudPOILocalSearchRequest>()
.toList() ?? <AMapCloudPOILocalSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOILocalSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOILocalSearchRequest::get_city", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOILocalSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOILocalSearchRequest::set_city', <String, dynamic>{'__this__': this, "city": city});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudPOILocalSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudPOILocalSearchRequest_Batch on List<AMapCloudPOILocalSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOILocalSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOILocalSearchRequest::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOILocalSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOILocalSearchRequest::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapCloudPOIPolygonSearchRequest extends AMapCloudSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudPOIPolygonSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudPOIPolygonSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudPOIPolygonSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudPOIPolygonSearchRequest>(__result__)!;
}
static Future<List<AMapCloudPOIPolygonSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudPOIPolygonSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOIPolygonSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapCloudPOIPolygonSearchRequest>()
.toList() ?? <AMapCloudPOIPolygonSearchRequest>[];
}
//endregion
//region getters
Future<AMapGeoPolygon?> get_polygon() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIPolygonSearchRequest::get_polygon", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__);
}
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIPolygonSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_polygon(AMapGeoPolygon polygon) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIPolygonSearchRequest::set_polygon', <String, dynamic>{'__this__': this, "polygon": polygon});
}
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIPolygonSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudPOIPolygonSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudPOIPolygonSearchRequest_Batch on List<AMapCloudPOIPolygonSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPolygon?>> get_polygon_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIPolygonSearchRequest::get_polygon_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__)).cast<AMapGeoPolygon?>().toList();
}
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIPolygonSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_polygon_batch(List<AMapGeoPolygon> polygon) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIPolygonSearchRequest::set_polygon_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polygon": polygon[__i__]}]);
}
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIPolygonSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapCloudPOISearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudPOISearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudPOISearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudPOISearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudPOISearchResponse>(__result__)!;
}
static Future<List<AMapCloudPOISearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudPOISearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOISearchResponse>(it))
.where((element) => element !=null)
.cast<AMapCloudPOISearchResponse>()
.toList() ?? <AMapCloudPOISearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOISearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<List<AMapCloudPOI>?> get_POIs() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOISearchResponse::get_POIs", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOI>(it)).where((e) => e != null).cast<AMapCloudPOI>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOISearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_POIs(List<AMapCloudPOI> POIs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOISearchResponse::set_POIs', <String, dynamic>{'__this__': this, "POIs": POIs});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudPOISearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudPOISearchResponse_Batch on List<AMapCloudPOISearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOISearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapCloudPOI>?>> get_POIs_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOISearchResponse::get_POIs_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudPOI>(it)).where((e) => e != null).cast<AMapCloudPOI>().toList()).cast<List<AMapCloudPOI>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOISearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_POIs_batch(List<List<AMapCloudPOI>> POIs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOISearchResponse::set_POIs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "POIs": POIs[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,201 @@
// 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_search_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 AMapCloudSearchBaseRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapCloudSearchBaseRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapCloudSearchBaseRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapCloudSearchBaseRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapCloudSearchBaseRequest>(__result__)!;
}
static Future<List<AMapCloudSearchBaseRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapCloudSearchBaseRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapCloudSearchBaseRequest>(it))
.where((element) => element !=null)
.cast<AMapCloudSearchBaseRequest>()
.toList() ?? <AMapCloudSearchBaseRequest>[];
}
//endregion
//region getters
Future<String?> get_tableID() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_tableID", {'__this__': this});
return __result__;
}
Future<List<String>?> get_filter() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_filter", {'__this__': this});
return (__result__ as List?)?.cast<String>();
}
Future<String?> get_sortFields() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_sortFields", {'__this__': this});
return __result__;
}
Future<AMapCloudSortType?> get_sortType() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_sortType", {'__this__': this});
return (__result__ as int).toAMapCloudSortType();
}
Future<int?> get_offset() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_offset", {'__this__': this});
return __result__;
}
Future<int?> get_page() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_page", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_tableID(String tableID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_tableID', <String, dynamic>{'__this__': this, "tableID": tableID});
}
Future<void> set_filter(List<String> filter) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_filter', <String, dynamic>{'__this__': this, "filter": filter});
}
Future<void> set_sortFields(String sortFields) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_sortFields', <String, dynamic>{'__this__': this, "sortFields": sortFields});
}
Future<void> set_sortType(AMapCloudSortType sortType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_sortType', <String, dynamic>{'__this__': this, "sortType": sortType.toValue()});
}
Future<void> set_offset(int offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_offset', <String, dynamic>{'__this__': this, "offset": offset});
}
Future<void> set_page(int page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_page', <String, dynamic>{'__this__': this, "page": page});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapCloudSearchBaseRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapCloudSearchBaseRequest_Batch on List<AMapCloudSearchBaseRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_tableID_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_tableID_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<List<String>?>> get_filter_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_filter_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<String>()).cast<List<String>?>().toList();
}
Future<List<String?>> get_sortFields_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_sortFields_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapCloudSortType?>> get_sortType_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_sortType_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as int).toAMapCloudSortType()).cast<AMapCloudSortType?>().toList();
}
Future<List<int?>> get_offset_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_offset_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_page_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudSearchBaseRequest::get_page_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_tableID_batch(List<String> tableID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_tableID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tableID": tableID[__i__]}]);
}
Future<void> set_filter_batch(List<List<String>> filter) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_filter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "filter": filter[__i__]}]);
}
Future<void> set_sortFields_batch(List<String> sortFields) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_sortFields_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sortFields": sortFields[__i__]}]);
}
Future<void> set_sortType_batch(List<AMapCloudSortType> sortType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_sortType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sortType": sortType[__i__].toValue()}]);
}
Future<void> set_offset_batch(List<int> offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_offset_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "offset": offset[__i__]}]);
}
Future<void> set_page_batch(List<int> page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudSearchBaseRequest::set_page_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "page": page[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,29 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapCloudSortType {
AMapCloudSortTypeDESC /* 0 */,
AMapCloudSortTypeASC /* 1 */
}
extension AMapCloudSortTypeToX on AMapCloudSortType {
int toValue() {
switch (this) {
case AMapCloudSortType.AMapCloudSortTypeDESC: return 0;
case AMapCloudSortType.AMapCloudSortTypeASC: return 1;
default: return 0;
}
}
}
extension AMapCloudSortTypeFromX on int {
AMapCloudSortType toAMapCloudSortType() {
switch (this) {
case 0: return AMapCloudSortType.AMapCloudSortTypeDESC;
case 1: return AMapCloudSortType.AMapCloudSortTypeASC;
default: return AMapCloudSortType.values[this + 0];
}
}
}

View File

@ -0,0 +1,201 @@
// 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_search_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 AMapDistanceResult extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDistanceResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDistanceResult> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDistanceResult',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDistanceResult>(__result__)!;
}
static Future<List<AMapDistanceResult>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDistanceResult',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDistanceResult>(it))
.where((element) => element !=null)
.cast<AMapDistanceResult>()
.toList() ?? <AMapDistanceResult>[];
}
//endregion
//region getters
Future<int?> get_originID() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_originID", {'__this__': this});
return __result__;
}
Future<int?> get_destID() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_destID", {'__this__': this});
return __result__;
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_distance", {'__this__': this});
return __result__;
}
Future<int?> get_duration() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_duration", {'__this__': this});
return __result__;
}
Future<String?> get_info() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_info", {'__this__': this});
return __result__;
}
Future<int?> get_code() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_code", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_originID(int originID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_originID', <String, dynamic>{'__this__': this, "originID": originID});
}
Future<void> set_destID(int destID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_destID', <String, dynamic>{'__this__': this, "destID": destID});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_duration(int duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
}
Future<void> set_info(String info) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_info', <String, dynamic>{'__this__': this, "info": info});
}
Future<void> set_code(int code) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_code', <String, dynamic>{'__this__': this, "code": code});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDistanceResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDistanceResult_Batch on List<AMapDistanceResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_originID_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_originID_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_destID_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_destID_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_duration_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_info_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_info_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_code_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceResult::get_code_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_originID_batch(List<int> originID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_originID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "originID": originID[__i__]}]);
}
Future<void> set_destID_batch(List<int> destID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_destID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destID": destID[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_duration_batch(List<int> duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
}
Future<void> set_info_batch(List<String> info) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_info_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "info": info[__i__]}]);
}
Future<void> set_code_batch(List<int> code) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceResult::set_code_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "code": code[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapDistanceSearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDistanceSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDistanceSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDistanceSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDistanceSearchRequest>(__result__)!;
}
static Future<List<AMapDistanceSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDistanceSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDistanceSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapDistanceSearchRequest>()
.toList() ?? <AMapDistanceSearchRequest>[];
}
//endregion
//region getters
Future<List<AMapGeoPoint>?> get_origins() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_origins", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList();
}
Future<AMapGeoPoint?> get_destination() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_destination", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapDistanceSearchType?> get_type() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_type", {'__this__': this});
return (__result__ as int).toAMapDistanceSearchType();
}
Future<int?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_strategy", {'__this__': this});
return __result__;
}
Future<bool?> get_requireExtension() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_requireExtension", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_origins(List<AMapGeoPoint> origins) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_origins', <String, dynamic>{'__this__': this, "origins": origins});
}
Future<void> set_destination(AMapGeoPoint destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_destination', <String, dynamic>{'__this__': this, "destination": destination});
}
Future<void> set_type(AMapDistanceSearchType type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_type', <String, dynamic>{'__this__': this, "type": type.toValue()});
}
Future<void> set_strategy(int strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_requireExtension(bool requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_requireExtension', <String, dynamic>{'__this__': this, "requireExtension": requireExtension});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDistanceSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDistanceSearchRequest_Batch on List<AMapDistanceSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<List<AMapGeoPoint>?>> get_origins_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_origins_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList()).cast<List<AMapGeoPoint>?>().toList();
}
Future<List<AMapGeoPoint?>> get_destination_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_destination_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapDistanceSearchType?>> get_type_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_type_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as int).toAMapDistanceSearchType()).cast<AMapDistanceSearchType?>().toList();
}
Future<List<int?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<bool?>> get_requireExtension_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchRequest::get_requireExtension_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
//region setters
Future<void> set_origins_batch(List<List<AMapGeoPoint>> origins) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_origins_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origins": origins[__i__]}]);
}
Future<void> set_destination_batch(List<AMapGeoPoint> destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_destination_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destination": destination[__i__]}]);
}
Future<void> set_type_batch(List<AMapDistanceSearchType> type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "type": type[__i__].toValue()}]);
}
Future<void> set_strategy_batch(List<int> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_requireExtension_batch(List<bool> requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchRequest::set_requireExtension_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireExtension": requireExtension[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,101 @@
// 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_search_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 AMapDistanceSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDistanceSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDistanceSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDistanceSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDistanceSearchResponse>(__result__)!;
}
static Future<List<AMapDistanceSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDistanceSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDistanceSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapDistanceSearchResponse>()
.toList() ?? <AMapDistanceSearchResponse>[];
}
//endregion
//region getters
Future<List<AMapDistanceResult>?> get_results() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchResponse::get_results", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistanceResult>(it)).where((e) => e != null).cast<AMapDistanceResult>().toList();
}
//endregion
//region setters
Future<void> set_results(List<AMapDistanceResult> results) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchResponse::set_results', <String, dynamic>{'__this__': this, "results": results});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDistanceSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDistanceSearchResponse_Batch on List<AMapDistanceSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<List<AMapDistanceResult>?>> get_results_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistanceSearchResponse::get_results_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistanceResult>(it)).where((e) => e != null).cast<AMapDistanceResult>().toList()).cast<List<AMapDistanceResult>?>().toList();
}
//endregion
//region setters
Future<void> set_results_batch(List<List<AMapDistanceResult>> results) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistanceSearchResponse::set_results_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "results": results[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,32 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapDistanceSearchType {
AMapDistanceSearchTypeStraight /* 0 */,
AMapDistanceSearchTypeDrive /* 1 */,
AMapDistanceSearchTypeWalk /* 3 */
}
extension AMapDistanceSearchTypeToX on AMapDistanceSearchType {
int toValue() {
switch (this) {
case AMapDistanceSearchType.AMapDistanceSearchTypeStraight: return 0;
case AMapDistanceSearchType.AMapDistanceSearchTypeDrive: return 1;
case AMapDistanceSearchType.AMapDistanceSearchTypeWalk: return 3;
default: return 0;
}
}
}
extension AMapDistanceSearchTypeFromX on int {
AMapDistanceSearchType toAMapDistanceSearchType() {
switch (this) {
case 0: return AMapDistanceSearchType.AMapDistanceSearchTypeStraight;
case 1: return AMapDistanceSearchType.AMapDistanceSearchTypeDrive;
case 3: return AMapDistanceSearchType.AMapDistanceSearchTypeWalk;
default: return AMapDistanceSearchType.values[this + 0];
}
}
}

View File

@ -0,0 +1,221 @@
// 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_search_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 AMapDistrict extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDistrict';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDistrict> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDistrict',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDistrict>(__result__)!;
}
static Future<List<AMapDistrict>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDistrict',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrict>(it))
.where((element) => element !=null)
.cast<AMapDistrict>()
.toList() ?? <AMapDistrict>[];
}
//endregion
//region getters
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_citycode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_citycode", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_level() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_level", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_center() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_center", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<List<AMapDistrict>?> get_districts() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_districts", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrict>(it)).where((e) => e != null).cast<AMapDistrict>().toList();
}
Future<List<String>?> get_polylines() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_polylines", {'__this__': this});
return (__result__ as List?)?.cast<String>();
}
//endregion
//region setters
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_citycode(String citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_level(String level) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_level', <String, dynamic>{'__this__': this, "level": level});
}
Future<void> set_center(AMapGeoPoint center) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_center', <String, dynamic>{'__this__': this, "center": center});
}
Future<void> set_districts(List<AMapDistrict> districts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_districts', <String, dynamic>{'__this__': this, "districts": districts});
}
Future<void> set_polylines(List<String> polylines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_polylines', <String, dynamic>{'__this__': this, "polylines": polylines});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDistrict{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDistrict_Batch on List<AMapDistrict?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_citycode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_level_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_level_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_center_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_center_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<List<AMapDistrict>?>> get_districts_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_districts_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrict>(it)).where((e) => e != null).cast<AMapDistrict>().toList()).cast<List<AMapDistrict>?>().toList();
}
Future<List<List<String>?>> get_polylines_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrict::get_polylines_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<String>()).cast<List<String>?>().toList();
}
//endregion
//region setters
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_citycode_batch(List<String> citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_level_batch(List<String> level) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_level_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "level": level[__i__]}]);
}
Future<void> set_center_batch(List<AMapGeoPoint> center) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_center_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "center": center[__i__]}]);
}
Future<void> set_districts_batch(List<List<AMapDistrict>> districts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_districts_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "districts": districts[__i__]}]);
}
Future<void> set_polylines_batch(List<List<String>> polylines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrict::set_polylines_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polylines": polylines[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapDistrictSearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDistrictSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDistrictSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDistrictSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDistrictSearchRequest>(__result__)!;
}
static Future<List<AMapDistrictSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDistrictSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrictSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapDistrictSearchRequest>()
.toList() ?? <AMapDistrictSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
Future<bool?> get_requireExtension() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchRequest::get_requireExtension", {'__this__': this});
return __result__;
}
Future<bool?> get_showBusinessArea() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchRequest::get_showBusinessArea", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_requireExtension(bool requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchRequest::set_requireExtension', <String, dynamic>{'__this__': this, "requireExtension": requireExtension});
}
Future<void> set_showBusinessArea(bool showBusinessArea) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchRequest::set_showBusinessArea', <String, dynamic>{'__this__': this, "showBusinessArea": showBusinessArea});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDistrictSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDistrictSearchRequest_Batch on List<AMapDistrictSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_requireExtension_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchRequest::get_requireExtension_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> get_showBusinessArea_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchRequest::get_showBusinessArea_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_requireExtension_batch(List<bool> requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchRequest::set_requireExtension_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireExtension": requireExtension[__i__]}]);
}
Future<void> set_showBusinessArea_batch(List<bool> showBusinessArea) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchRequest::set_showBusinessArea_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "showBusinessArea": showBusinessArea[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapDistrictSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDistrictSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDistrictSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDistrictSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDistrictSearchResponse>(__result__)!;
}
static Future<List<AMapDistrictSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDistrictSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrictSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapDistrictSearchResponse>()
.toList() ?? <AMapDistrictSearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<List<AMapDistrict>?> get_districts() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchResponse::get_districts", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrict>(it)).where((e) => e != null).cast<AMapDistrict>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_districts(List<AMapDistrict> districts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchResponse::set_districts', <String, dynamic>{'__this__': this, "districts": districts});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDistrictSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDistrictSearchResponse_Batch on List<AMapDistrictSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapDistrict>?>> get_districts_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDistrictSearchResponse::get_districts_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapDistrict>(it)).where((e) => e != null).cast<AMapDistrict>().toList()).cast<List<AMapDistrict>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_districts_batch(List<List<AMapDistrict>> districts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDistrictSearchResponse::set_districts_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "districts": districts[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,321 @@
// 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_search_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 AMapDrivingCalRouteSearchRequest extends AMapRouteSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDrivingCalRouteSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDrivingCalRouteSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDrivingCalRouteSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDrivingCalRouteSearchRequest>(__result__)!;
}
static Future<List<AMapDrivingCalRouteSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDrivingCalRouteSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDrivingCalRouteSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapDrivingCalRouteSearchRequest>()
.toList() ?? <AMapDrivingCalRouteSearchRequest>[];
}
//endregion
//region getters
Future<int?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_strategy", {'__this__': this});
return __result__;
}
Future<List<AMapGeoPoint>?> get_waypoints() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_waypoints", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList();
}
Future<List<AMapGeoPolygon>?> get_avoidpolygons() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_avoidpolygons", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(it)).where((e) => e != null).cast<AMapGeoPolygon>().toList();
}
Future<String?> get_avoidroad() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_avoidroad", {'__this__': this});
return __result__;
}
Future<String?> get_originId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_originId", {'__this__': this});
return __result__;
}
Future<String?> get_destinationId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_destinationId", {'__this__': this});
return __result__;
}
Future<String?> get_origintype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_origintype", {'__this__': this});
return __result__;
}
Future<String?> get_destinationtype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_destinationtype", {'__this__': this});
return __result__;
}
Future<String?> get_plate() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_plate", {'__this__': this});
return __result__;
}
Future<int?> get_ferry() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_ferry", {'__this__': this});
return __result__;
}
Future<int?> get_cartype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_cartype", {'__this__': this});
return __result__;
}
Future<AMapDrivingRouteShowFieldType?> get_showFieldType() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_showFieldType", {'__this__': this});
return (__result__ as int).toAMapDrivingRouteShowFieldType();
}
//endregion
//region setters
Future<void> set_strategy(int strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_waypoints(List<AMapGeoPoint> waypoints) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_waypoints', <String, dynamic>{'__this__': this, "waypoints": waypoints});
}
Future<void> set_avoidpolygons(List<AMapGeoPolygon> avoidpolygons) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_avoidpolygons', <String, dynamic>{'__this__': this, "avoidpolygons": avoidpolygons});
}
Future<void> set_avoidroad(String avoidroad) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_avoidroad', <String, dynamic>{'__this__': this, "avoidroad": avoidroad});
}
Future<void> set_originId(String originId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_originId', <String, dynamic>{'__this__': this, "originId": originId});
}
Future<void> set_destinationId(String destinationId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_destinationId', <String, dynamic>{'__this__': this, "destinationId": destinationId});
}
Future<void> set_origintype(String origintype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_origintype', <String, dynamic>{'__this__': this, "origintype": origintype});
}
Future<void> set_destinationtype(String destinationtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_destinationtype', <String, dynamic>{'__this__': this, "destinationtype": destinationtype});
}
Future<void> set_plate(String plate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_plate', <String, dynamic>{'__this__': this, "plate": plate});
}
Future<void> set_ferry(int ferry) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_ferry', <String, dynamic>{'__this__': this, "ferry": ferry});
}
Future<void> set_cartype(int cartype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_cartype', <String, dynamic>{'__this__': this, "cartype": cartype});
}
Future<void> set_showFieldType(AMapDrivingRouteShowFieldType showFieldType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_showFieldType', <String, dynamic>{'__this__': this, "showFieldType": showFieldType.toValue()});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDrivingCalRouteSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDrivingCalRouteSearchRequest_Batch on List<AMapDrivingCalRouteSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapGeoPoint>?>> get_waypoints_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_waypoints_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList()).cast<List<AMapGeoPoint>?>().toList();
}
Future<List<List<AMapGeoPolygon>?>> get_avoidpolygons_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_avoidpolygons_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(it)).where((e) => e != null).cast<AMapGeoPolygon>().toList()).cast<List<AMapGeoPolygon>?>().toList();
}
Future<List<String?>> get_avoidroad_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_avoidroad_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_originId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_originId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_destinationId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_destinationId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_origintype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_origintype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_destinationtype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_destinationtype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_plate_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_plate_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_ferry_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_ferry_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_cartype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_cartype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapDrivingRouteShowFieldType?>> get_showFieldType_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingCalRouteSearchRequest::get_showFieldType_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as int).toAMapDrivingRouteShowFieldType()).cast<AMapDrivingRouteShowFieldType?>().toList();
}
//endregion
//region setters
Future<void> set_strategy_batch(List<int> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_waypoints_batch(List<List<AMapGeoPoint>> waypoints) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_waypoints_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "waypoints": waypoints[__i__]}]);
}
Future<void> set_avoidpolygons_batch(List<List<AMapGeoPolygon>> avoidpolygons) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_avoidpolygons_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "avoidpolygons": avoidpolygons[__i__]}]);
}
Future<void> set_avoidroad_batch(List<String> avoidroad) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_avoidroad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "avoidroad": avoidroad[__i__]}]);
}
Future<void> set_originId_batch(List<String> originId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_originId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "originId": originId[__i__]}]);
}
Future<void> set_destinationId_batch(List<String> destinationId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_destinationId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationId": destinationId[__i__]}]);
}
Future<void> set_origintype_batch(List<String> origintype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_origintype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origintype": origintype[__i__]}]);
}
Future<void> set_destinationtype_batch(List<String> destinationtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_destinationtype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationtype": destinationtype[__i__]}]);
}
Future<void> set_plate_batch(List<String> plate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_plate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "plate": plate[__i__]}]);
}
Future<void> set_ferry_batch(List<int> ferry) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_ferry_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "ferry": ferry[__i__]}]);
}
Future<void> set_cartype_batch(List<int> cartype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_cartype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cartype": cartype[__i__]}]);
}
Future<void> set_showFieldType_batch(List<AMapDrivingRouteShowFieldType> showFieldType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingCalRouteSearchRequest::set_showFieldType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "showFieldType": showFieldType[__i__].toValue()}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,35 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapDrivingRouteExcludeType {
AMapDrivingRouteExcludeTypeNone /* 0 */,
AMapDrivingRouteExcludeTypeToll /* 1 */,
AMapDrivingRouteExcludeTypeMotorway /* 2 */,
AMapDrivingRouteExcludeTypeFerry /* 3 */
}
extension AMapDrivingRouteExcludeTypeToX on AMapDrivingRouteExcludeType {
int toValue() {
switch (this) {
case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeNone: return 0;
case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeToll: return 1;
case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeMotorway: return 2;
case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeFerry: return 3;
default: return 0;
}
}
}
extension AMapDrivingRouteExcludeTypeFromX on int {
AMapDrivingRouteExcludeType toAMapDrivingRouteExcludeType() {
switch (this) {
case 0: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeNone;
case 1: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeToll;
case 2: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeMotorway;
case 3: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeFerry;
default: return AMapDrivingRouteExcludeType.values[this + 0];
}
}
}

View File

@ -0,0 +1,361 @@
// 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_search_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 AMapDrivingRouteSearchRequest extends AMapRouteSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapDrivingRouteSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapDrivingRouteSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapDrivingRouteSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapDrivingRouteSearchRequest>(__result__)!;
}
static Future<List<AMapDrivingRouteSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapDrivingRouteSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapDrivingRouteSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapDrivingRouteSearchRequest>()
.toList() ?? <AMapDrivingRouteSearchRequest>[];
}
//endregion
//region getters
Future<int?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_strategy", {'__this__': this});
return __result__;
}
Future<List<AMapGeoPoint>?> get_waypoints() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_waypoints", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList();
}
Future<List<AMapGeoPolygon>?> get_avoidpolygons() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_avoidpolygons", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(it)).where((e) => e != null).cast<AMapGeoPolygon>().toList();
}
Future<String?> get_avoidroad() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_avoidroad", {'__this__': this});
return __result__;
}
Future<String?> get_originId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_originId", {'__this__': this});
return __result__;
}
Future<String?> get_destinationId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_destinationId", {'__this__': this});
return __result__;
}
Future<String?> get_origintype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_origintype", {'__this__': this});
return __result__;
}
Future<String?> get_destinationtype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_destinationtype", {'__this__': this});
return __result__;
}
Future<bool?> get_requireExtension() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_requireExtension", {'__this__': this});
return __result__;
}
Future<String?> get_plateProvince() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_plateProvince", {'__this__': this});
return __result__;
}
Future<String?> get_plateNumber() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_plateNumber", {'__this__': this});
return __result__;
}
Future<int?> get_ferry() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_ferry", {'__this__': this});
return __result__;
}
Future<int?> get_cartype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_cartype", {'__this__': this});
return __result__;
}
Future<AMapDrivingRouteExcludeType?> get_exclude() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_exclude", {'__this__': this});
return (__result__ as int).toAMapDrivingRouteExcludeType();
}
//endregion
//region setters
Future<void> set_strategy(int strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_waypoints(List<AMapGeoPoint> waypoints) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_waypoints', <String, dynamic>{'__this__': this, "waypoints": waypoints});
}
Future<void> set_avoidpolygons(List<AMapGeoPolygon> avoidpolygons) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_avoidpolygons', <String, dynamic>{'__this__': this, "avoidpolygons": avoidpolygons});
}
Future<void> set_avoidroad(String avoidroad) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_avoidroad', <String, dynamic>{'__this__': this, "avoidroad": avoidroad});
}
Future<void> set_originId(String originId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_originId', <String, dynamic>{'__this__': this, "originId": originId});
}
Future<void> set_destinationId(String destinationId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_destinationId', <String, dynamic>{'__this__': this, "destinationId": destinationId});
}
Future<void> set_origintype(String origintype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_origintype', <String, dynamic>{'__this__': this, "origintype": origintype});
}
Future<void> set_destinationtype(String destinationtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_destinationtype', <String, dynamic>{'__this__': this, "destinationtype": destinationtype});
}
Future<void> set_requireExtension(bool requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_requireExtension', <String, dynamic>{'__this__': this, "requireExtension": requireExtension});
}
Future<void> set_plateProvince(String plateProvince) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_plateProvince', <String, dynamic>{'__this__': this, "plateProvince": plateProvince});
}
Future<void> set_plateNumber(String plateNumber) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_plateNumber', <String, dynamic>{'__this__': this, "plateNumber": plateNumber});
}
Future<void> set_ferry(int ferry) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_ferry', <String, dynamic>{'__this__': this, "ferry": ferry});
}
Future<void> set_cartype(int cartype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_cartype', <String, dynamic>{'__this__': this, "cartype": cartype});
}
Future<void> set_exclude(AMapDrivingRouteExcludeType exclude) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_exclude', <String, dynamic>{'__this__': this, "exclude": exclude.toValue()});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapDrivingRouteSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapDrivingRouteSearchRequest_Batch on List<AMapDrivingRouteSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapGeoPoint>?>> get_waypoints_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_waypoints_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList()).cast<List<AMapGeoPoint>?>().toList();
}
Future<List<List<AMapGeoPolygon>?>> get_avoidpolygons_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_avoidpolygons_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(it)).where((e) => e != null).cast<AMapGeoPolygon>().toList()).cast<List<AMapGeoPolygon>?>().toList();
}
Future<List<String?>> get_avoidroad_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_avoidroad_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_originId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_originId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_destinationId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_destinationId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_origintype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_origintype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_destinationtype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_destinationtype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_requireExtension_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_requireExtension_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<String?>> get_plateProvince_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_plateProvince_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_plateNumber_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_plateNumber_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_ferry_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_ferry_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_cartype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_cartype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapDrivingRouteExcludeType?>> get_exclude_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapDrivingRouteSearchRequest::get_exclude_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as int).toAMapDrivingRouteExcludeType()).cast<AMapDrivingRouteExcludeType?>().toList();
}
//endregion
//region setters
Future<void> set_strategy_batch(List<int> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_waypoints_batch(List<List<AMapGeoPoint>> waypoints) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_waypoints_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "waypoints": waypoints[__i__]}]);
}
Future<void> set_avoidpolygons_batch(List<List<AMapGeoPolygon>> avoidpolygons) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_avoidpolygons_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "avoidpolygons": avoidpolygons[__i__]}]);
}
Future<void> set_avoidroad_batch(List<String> avoidroad) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_avoidroad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "avoidroad": avoidroad[__i__]}]);
}
Future<void> set_originId_batch(List<String> originId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_originId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "originId": originId[__i__]}]);
}
Future<void> set_destinationId_batch(List<String> destinationId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_destinationId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationId": destinationId[__i__]}]);
}
Future<void> set_origintype_batch(List<String> origintype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_origintype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origintype": origintype[__i__]}]);
}
Future<void> set_destinationtype_batch(List<String> destinationtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_destinationtype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationtype": destinationtype[__i__]}]);
}
Future<void> set_requireExtension_batch(List<bool> requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_requireExtension_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireExtension": requireExtension[__i__]}]);
}
Future<void> set_plateProvince_batch(List<String> plateProvince) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_plateProvince_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "plateProvince": plateProvince[__i__]}]);
}
Future<void> set_plateNumber_batch(List<String> plateNumber) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_plateNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "plateNumber": plateNumber[__i__]}]);
}
Future<void> set_ferry_batch(List<int> ferry) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_ferry_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "ferry": ferry[__i__]}]);
}
Future<void> set_cartype_batch(List<int> cartype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_cartype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cartype": cartype[__i__]}]);
}
Future<void> set_exclude_batch(List<AMapDrivingRouteExcludeType> exclude) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapDrivingRouteSearchRequest::set_exclude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "exclude": exclude[__i__].toValue()}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,47 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapDrivingRouteShowFieldType {
AMapDrivingRouteShowFieldTypeNone /* 1<<0 */,
AMapDrivingRouteShowFieldTypeCost /* 1<<1 */,
AMapDrivingRouteShowFieldTypeTmcs /* 1<<2 */,
AMapDrivingRouteShowFieldTypeNavi /* 1<<3 */,
AMapDrivingRouteShowFieldTypeCities /* 1<<4 */,
AMapDrivingRouteShowFieldTypePolyline /* 1<<5 */,
AMapDrivingRouteShowFieldTypeNewEnergy /* 1<<6 */,
AMapDrivingRouteShowFieldTypeAll /* ~0 */
}
extension AMapDrivingRouteShowFieldTypeToX on AMapDrivingRouteShowFieldType {
int toValue() {
switch (this) {
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNone: return 1<<0;
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCost: return 1<<1;
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeTmcs: return 1<<2;
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNavi: return 1<<3;
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCities: return 1<<4;
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypePolyline: return 1<<5;
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNewEnergy: return 1<<6;
case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeAll: return ~0;
default: return 0;
}
}
}
extension AMapDrivingRouteShowFieldTypeFromX on int {
AMapDrivingRouteShowFieldType toAMapDrivingRouteShowFieldType() {
switch (this) {
case 1<<0: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNone;
case 1<<1: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCost;
case 1<<2: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeTmcs;
case 1<<3: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNavi;
case 1<<4: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCities;
case 1<<5: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypePolyline;
case 1<<6: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNewEnergy;
case ~0: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeAll;
default: return AMapDrivingRouteShowFieldType.values[this + 1<<0];
}
}
}

View File

@ -0,0 +1,321 @@
// 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_search_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 AMapFutureRouteSearchRequest extends AMapRouteSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapFutureRouteSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapFutureRouteSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapFutureRouteSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapFutureRouteSearchRequest>(__result__)!;
}
static Future<List<AMapFutureRouteSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapFutureRouteSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureRouteSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapFutureRouteSearchRequest>()
.toList() ?? <AMapFutureRouteSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_beginTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_beginTime", {'__this__': this});
return __result__;
}
Future<int?> get_interval() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_interval", {'__this__': this});
return __result__;
}
Future<int?> get_timeCount() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_timeCount", {'__this__': this});
return __result__;
}
Future<int?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_strategy", {'__this__': this});
return __result__;
}
Future<String?> get_originId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_originId", {'__this__': this});
return __result__;
}
Future<String?> get_destinationId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_destinationId", {'__this__': this});
return __result__;
}
Future<String?> get_origintype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_origintype", {'__this__': this});
return __result__;
}
Future<String?> get_destinationtype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_destinationtype", {'__this__': this});
return __result__;
}
Future<String?> get_parentId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_parentId", {'__this__': this});
return __result__;
}
Future<String?> get_plateProvince() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_plateProvince", {'__this__': this});
return __result__;
}
Future<String?> get_plateNumber() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_plateNumber", {'__this__': this});
return __result__;
}
Future<int?> get_cartype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_cartype", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_beginTime(String beginTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_beginTime', <String, dynamic>{'__this__': this, "beginTime": beginTime});
}
Future<void> set_interval(int interval) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_interval', <String, dynamic>{'__this__': this, "interval": interval});
}
Future<void> set_timeCount(int timeCount) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_timeCount', <String, dynamic>{'__this__': this, "timeCount": timeCount});
}
Future<void> set_strategy(int strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_originId(String originId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_originId', <String, dynamic>{'__this__': this, "originId": originId});
}
Future<void> set_destinationId(String destinationId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_destinationId', <String, dynamic>{'__this__': this, "destinationId": destinationId});
}
Future<void> set_origintype(String origintype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_origintype', <String, dynamic>{'__this__': this, "origintype": origintype});
}
Future<void> set_destinationtype(String destinationtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_destinationtype', <String, dynamic>{'__this__': this, "destinationtype": destinationtype});
}
Future<void> set_parentId(String parentId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_parentId', <String, dynamic>{'__this__': this, "parentId": parentId});
}
Future<void> set_plateProvince(String plateProvince) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_plateProvince', <String, dynamic>{'__this__': this, "plateProvince": plateProvince});
}
Future<void> set_plateNumber(String plateNumber) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_plateNumber', <String, dynamic>{'__this__': this, "plateNumber": plateNumber});
}
Future<void> set_cartype(int cartype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_cartype', <String, dynamic>{'__this__': this, "cartype": cartype});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapFutureRouteSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapFutureRouteSearchRequest_Batch on List<AMapFutureRouteSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_beginTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_beginTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_interval_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_interval_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_timeCount_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_timeCount_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_originId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_originId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_destinationId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_destinationId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_origintype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_origintype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_destinationtype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_destinationtype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_parentId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_parentId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_plateProvince_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_plateProvince_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_plateNumber_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_plateNumber_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_cartype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchRequest::get_cartype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_beginTime_batch(List<String> beginTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_beginTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "beginTime": beginTime[__i__]}]);
}
Future<void> set_interval_batch(List<int> interval) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_interval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "interval": interval[__i__]}]);
}
Future<void> set_timeCount_batch(List<int> timeCount) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_timeCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "timeCount": timeCount[__i__]}]);
}
Future<void> set_strategy_batch(List<int> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_originId_batch(List<String> originId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_originId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "originId": originId[__i__]}]);
}
Future<void> set_destinationId_batch(List<String> destinationId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_destinationId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationId": destinationId[__i__]}]);
}
Future<void> set_origintype_batch(List<String> origintype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_origintype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origintype": origintype[__i__]}]);
}
Future<void> set_destinationtype_batch(List<String> destinationtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_destinationtype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationtype": destinationtype[__i__]}]);
}
Future<void> set_parentId_batch(List<String> parentId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_parentId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "parentId": parentId[__i__]}]);
}
Future<void> set_plateProvince_batch(List<String> plateProvince) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_plateProvince_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "plateProvince": plateProvince[__i__]}]);
}
Future<void> set_plateNumber_batch(List<String> plateNumber) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_plateNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "plateNumber": plateNumber[__i__]}]);
}
Future<void> set_cartype_batch(List<int> cartype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchRequest::set_cartype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cartype": cartype[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapFutureRouteSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapFutureRouteSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapFutureRouteSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapFutureRouteSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapFutureRouteSearchResponse>(__result__)!;
}
static Future<List<AMapFutureRouteSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapFutureRouteSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureRouteSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapFutureRouteSearchResponse>()
.toList() ?? <AMapFutureRouteSearchResponse>[];
}
//endregion
//region getters
Future<List<AMapPath>?> get_paths() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchResponse::get_paths", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPath>(it)).where((e) => e != null).cast<AMapPath>().toList();
}
Future<List<AMapFutureTimeInfo>?> get_timeInfos() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchResponse::get_timeInfos", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureTimeInfo>(it)).where((e) => e != null).cast<AMapFutureTimeInfo>().toList();
}
//endregion
//region setters
Future<void> set_paths(List<AMapPath> paths) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchResponse::set_paths', <String, dynamic>{'__this__': this, "paths": paths});
}
Future<void> set_timeInfos(List<AMapFutureTimeInfo> timeInfos) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchResponse::set_timeInfos', <String, dynamic>{'__this__': this, "timeInfos": timeInfos});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapFutureRouteSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapFutureRouteSearchResponse_Batch on List<AMapFutureRouteSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<List<AMapPath>?>> get_paths_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchResponse::get_paths_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPath>(it)).where((e) => e != null).cast<AMapPath>().toList()).cast<List<AMapPath>?>().toList();
}
Future<List<List<AMapFutureTimeInfo>?>> get_timeInfos_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureRouteSearchResponse::get_timeInfos_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureTimeInfo>(it)).where((e) => e != null).cast<AMapFutureTimeInfo>().toList()).cast<List<AMapFutureTimeInfo>?>().toList();
}
//endregion
//region setters
Future<void> set_paths_batch(List<List<AMapPath>> paths) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchResponse::set_paths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "paths": paths[__i__]}]);
}
Future<void> set_timeInfos_batch(List<List<AMapFutureTimeInfo>> timeInfos) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureRouteSearchResponse::set_timeInfos_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "timeInfos": timeInfos[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapFutureTimeInfo extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapFutureTimeInfo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapFutureTimeInfo> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapFutureTimeInfo',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapFutureTimeInfo>(__result__)!;
}
static Future<List<AMapFutureTimeInfo>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapFutureTimeInfo',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureTimeInfo>(it))
.where((element) => element !=null)
.cast<AMapFutureTimeInfo>()
.toList() ?? <AMapFutureTimeInfo>[];
}
//endregion
//region getters
Future<String?> get_startTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfo::get_startTime", {'__this__': this});
return __result__;
}
Future<List<AMapFutureTimeInfoElement>?> get_elements() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfo::get_elements", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureTimeInfoElement>(it)).where((e) => e != null).cast<AMapFutureTimeInfoElement>().toList();
}
//endregion
//region setters
Future<void> set_startTime(String startTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfo::set_startTime', <String, dynamic>{'__this__': this, "startTime": startTime});
}
Future<void> set_elements(List<AMapFutureTimeInfoElement> elements) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfo::set_elements', <String, dynamic>{'__this__': this, "elements": elements});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapFutureTimeInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapFutureTimeInfo_Batch on List<AMapFutureTimeInfo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_startTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfo::get_startTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<List<AMapFutureTimeInfoElement>?>> get_elements_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfo::get_elements_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureTimeInfoElement>(it)).where((e) => e != null).cast<AMapFutureTimeInfoElement>().toList()).cast<List<AMapFutureTimeInfoElement>?>().toList();
}
//endregion
//region setters
Future<void> set_startTime_batch(List<String> startTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfo::set_startTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startTime": startTime[__i__]}]);
}
Future<void> set_elements_batch(List<List<AMapFutureTimeInfoElement>> elements) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfo::set_elements_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "elements": elements[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,161 @@
// 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_search_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 AMapFutureTimeInfoElement extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapFutureTimeInfoElement';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapFutureTimeInfoElement> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapFutureTimeInfoElement',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapFutureTimeInfoElement>(__result__)!;
}
static Future<List<AMapFutureTimeInfoElement>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapFutureTimeInfoElement',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapFutureTimeInfoElement>(it))
.where((element) => element !=null)
.cast<AMapFutureTimeInfoElement>()
.toList() ?? <AMapFutureTimeInfoElement>[];
}
//endregion
//region getters
Future<int?> get_duration() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_duration", {'__this__': this});
return __result__;
}
Future<int?> get_pathindex() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_pathindex", {'__this__': this});
return __result__;
}
Future<int?> get_restriction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_restriction", {'__this__': this});
return __result__;
}
Future<List<AMapTMC>?> get_tmcs() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_tmcs", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTMC>(it)).where((e) => e != null).cast<AMapTMC>().toList();
}
//endregion
//region setters
Future<void> set_duration(int duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
}
Future<void> set_pathindex(int pathindex) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_pathindex', <String, dynamic>{'__this__': this, "pathindex": pathindex});
}
Future<void> set_restriction(int restriction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_restriction', <String, dynamic>{'__this__': this, "restriction": restriction});
}
Future<void> set_tmcs(List<AMapTMC> tmcs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_tmcs', <String, dynamic>{'__this__': this, "tmcs": tmcs});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapFutureTimeInfoElement{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapFutureTimeInfoElement_Batch on List<AMapFutureTimeInfoElement?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_duration_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_pathindex_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_pathindex_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_restriction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_restriction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapTMC>?>> get_tmcs_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapFutureTimeInfoElement::get_tmcs_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTMC>(it)).where((e) => e != null).cast<AMapTMC>().toList()).cast<List<AMapTMC>?>().toList();
}
//endregion
//region setters
Future<void> set_duration_batch(List<int> duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
}
Future<void> set_pathindex_batch(List<int> pathindex) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_pathindex_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pathindex": pathindex[__i__]}]);
}
Future<void> set_restriction_batch(List<int> restriction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_restriction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "restriction": restriction[__i__]}]);
}
Future<void> set_tmcs_batch(List<List<AMapTMC>> tmcs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapFutureTimeInfoElement::set_tmcs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tmcs": tmcs[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,147 @@
// 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_search_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 AMapGeoPoint extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapGeoPoint';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapGeoPoint> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapGeoPoint',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)!;
}
static Future<List<AMapGeoPoint>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapGeoPoint',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it))
.where((element) => element !=null)
.cast<AMapGeoPoint>()
.toList() ?? <AMapGeoPoint>[];
}
//endregion
//region getters
Future<double?> get_latitude() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeoPoint::get_latitude", {'__this__': this});
return __result__;
}
Future<double?> get_longitude() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeoPoint::get_longitude", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_latitude(double latitude) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPoint::set_latitude', <String, dynamic>{'__this__': this, "latitude": latitude});
}
Future<void> set_longitude(double longitude) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPoint::set_longitude', <String, dynamic>{'__this__': this, "longitude": longitude});
}
//endregion
//region methods
static Future<AMapGeoPoint?> locationWithLatitude_longitude(double lat, double lon) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapGeoPoint::locationWithLatitude([\'lat\':$lat, \'lon\':$lon])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPoint::locationWithLatitude_longitude', {"lat": lat, "lon": lon});
// handle native call
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
//endregion
@override
String toString() {
return 'AMapGeoPoint{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapGeoPoint_Batch on List<AMapGeoPoint?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<double?>> get_latitude_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeoPoint::get_latitude_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<double?>> get_longitude_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeoPoint::get_longitude_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
//endregion
//region setters
Future<void> set_latitude_batch(List<double> latitude) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPoint::set_latitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "latitude": latitude[__i__]}]);
}
Future<void> set_longitude_batch(List<double> longitude) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPoint::set_longitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "longitude": longitude[__i__]}]);
}
//endregion
//region methods
static Future<List<AMapGeoPoint?>> locationWithLatitude_longitude_batch(List<double> lat, List<double> lon) async {
assert(lat.length == lon.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPoint::locationWithLatitude_longitude_batch', [for (int __i__ = 0; __i__ < lat.length; __i__++) {"lat": lat[__i__], "lon": lon[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
//endregion
}

View File

@ -0,0 +1,127 @@
// 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_search_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 AMapGeoPolygon extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapGeoPolygon';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapGeoPolygon> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapGeoPolygon',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__)!;
}
static Future<List<AMapGeoPolygon>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapGeoPolygon',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(it))
.where((element) => element !=null)
.cast<AMapGeoPolygon>()
.toList() ?? <AMapGeoPolygon>[];
}
//endregion
//region getters
Future<List<AMapGeoPoint>?> get_points() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeoPolygon::get_points", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList();
}
//endregion
//region setters
Future<void> set_points(List<AMapGeoPoint> points) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPolygon::set_points', <String, dynamic>{'__this__': this, "points": points});
}
//endregion
//region methods
static Future<AMapGeoPolygon?> polygonWithPoints(List<dynamic> points) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapGeoPolygon::polygonWithPoints([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPolygon::polygonWithPoints', {"points": points});
// handle native call
return AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__);
}
//endregion
@override
String toString() {
return 'AMapGeoPolygon{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapGeoPolygon_Batch on List<AMapGeoPolygon?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<List<AMapGeoPoint>?>> get_points_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeoPolygon::get_points_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList()).cast<List<AMapGeoPoint>?>().toList();
}
//endregion
//region setters
Future<void> set_points_batch(List<List<AMapGeoPoint>> points) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPolygon::set_points_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "points": points[__i__]}]);
}
//endregion
//region methods
static Future<List<AMapGeoPolygon?>> polygonWithPoints_batch(List<List<dynamic>> points) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapGeoPolygon::polygonWithPoints_batch', [for (int __i__ = 0; __i__ < points.length; __i__++) {"points": points[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__)).cast<AMapGeoPolygon?>().toList();
}
//endregion
}

View File

@ -0,0 +1,341 @@
// 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_search_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 AMapGeocode extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapGeocode';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapGeocode> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapGeocode',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapGeocode>(__result__)!;
}
static Future<List<AMapGeocode>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapGeocode',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapGeocode>(it))
.where((element) => element !=null)
.cast<AMapGeocode>()
.toList() ?? <AMapGeocode>[];
}
//endregion
//region getters
Future<String?> get_formattedAddress() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_formattedAddress", {'__this__': this});
return __result__;
}
Future<String?> get_province() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_province", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_citycode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_citycode", {'__this__': this});
return __result__;
}
Future<String?> get_district() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_district", {'__this__': this});
return __result__;
}
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_township() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_township", {'__this__': this});
return __result__;
}
Future<String?> get_neighborhood() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_neighborhood", {'__this__': this});
return __result__;
}
Future<String?> get_building() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_building", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_level() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_level", {'__this__': this});
return __result__;
}
Future<String?> get_country() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_country", {'__this__': this});
return __result__;
}
Future<String?> get_postcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_postcode", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_formattedAddress(String formattedAddress) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_formattedAddress', <String, dynamic>{'__this__': this, "formattedAddress": formattedAddress});
}
Future<void> set_province(String province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_province', <String, dynamic>{'__this__': this, "province": province});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_citycode(String citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
}
Future<void> set_district(String district) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_district', <String, dynamic>{'__this__': this, "district": district});
}
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_township(String township) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_township', <String, dynamic>{'__this__': this, "township": township});
}
Future<void> set_neighborhood(String neighborhood) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_neighborhood', <String, dynamic>{'__this__': this, "neighborhood": neighborhood});
}
Future<void> set_building(String building) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_building', <String, dynamic>{'__this__': this, "building": building});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_level(String level) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_level', <String, dynamic>{'__this__': this, "level": level});
}
Future<void> set_country(String country) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_country', <String, dynamic>{'__this__': this, "country": country});
}
Future<void> set_postcode(String postcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_postcode', <String, dynamic>{'__this__': this, "postcode": postcode});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapGeocode{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapGeocode_Batch on List<AMapGeocode?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_formattedAddress_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_formattedAddress_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_province_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_province_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_citycode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_district_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_district_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_township_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_township_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_neighborhood_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_neighborhood_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_building_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_building_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_level_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_level_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_country_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_country_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_postcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocode::get_postcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_formattedAddress_batch(List<String> formattedAddress) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_formattedAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "formattedAddress": formattedAddress[__i__]}]);
}
Future<void> set_province_batch(List<String> province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_province_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "province": province[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_citycode_batch(List<String> citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
}
Future<void> set_district_batch(List<String> district) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_district_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "district": district[__i__]}]);
}
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_township_batch(List<String> township) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_township_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "township": township[__i__]}]);
}
Future<void> set_neighborhood_batch(List<String> neighborhood) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_neighborhood_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "neighborhood": neighborhood[__i__]}]);
}
Future<void> set_building_batch(List<String> building) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_building_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "building": building[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_level_batch(List<String> level) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_level_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "level": level[__i__]}]);
}
Future<void> set_country_batch(List<String> country) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_country_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "country": country[__i__]}]);
}
Future<void> set_postcode_batch(List<String> postcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocode::set_postcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "postcode": postcode[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapGeocodeSearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapGeocodeSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapGeocodeSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapGeocodeSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapGeocodeSearchRequest>(__result__)!;
}
static Future<List<AMapGeocodeSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapGeocodeSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapGeocodeSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapGeocodeSearchRequest>()
.toList() ?? <AMapGeocodeSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_address() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchRequest::get_address", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchRequest::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_country() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchRequest::get_country", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_address(String address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchRequest::set_address', <String, dynamic>{'__this__': this, "address": address});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchRequest::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_country(String country) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchRequest::set_country', <String, dynamic>{'__this__': this, "country": country});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapGeocodeSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapGeocodeSearchRequest_Batch on List<AMapGeocodeSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_address_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchRequest::get_address_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchRequest::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_country_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchRequest::get_country_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_address_batch(List<String> address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchRequest::set_address_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "address": address[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchRequest::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_country_batch(List<String> country) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchRequest::set_country_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "country": country[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapGeocodeSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapGeocodeSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapGeocodeSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapGeocodeSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapGeocodeSearchResponse>(__result__)!;
}
static Future<List<AMapGeocodeSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapGeocodeSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapGeocodeSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapGeocodeSearchResponse>()
.toList() ?? <AMapGeocodeSearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<List<AMapGeocode>?> get_geocodes() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchResponse::get_geocodes", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeocode>(it)).where((e) => e != null).cast<AMapGeocode>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_geocodes(List<AMapGeocode> geocodes) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchResponse::set_geocodes', <String, dynamic>{'__this__': this, "geocodes": geocodes});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapGeocodeSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapGeocodeSearchResponse_Batch on List<AMapGeocodeSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapGeocode>?>> get_geocodes_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapGeocodeSearchResponse::get_geocodes_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeocode>(it)).where((e) => e != null).cast<AMapGeocode>().toList()).cast<List<AMapGeocode>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_geocodes_batch(List<List<AMapGeocode>> geocodes) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapGeocodeSearchResponse::set_geocodes_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "geocodes": geocodes[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapImage extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapImage';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapImage> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapImage',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapImage>(__result__)!;
}
static Future<List<AMapImage>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapImage',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapImage>(it))
.where((element) => element !=null)
.cast<AMapImage>()
.toList() ?? <AMapImage>[];
}
//endregion
//region getters
Future<String?> get_title() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapImage::get_title", {'__this__': this});
return __result__;
}
Future<String?> get_url() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapImage::get_url", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_title(String title) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapImage::set_title', <String, dynamic>{'__this__': this, "title": title});
}
Future<void> set_url(String url) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapImage::set_url', <String, dynamic>{'__this__': this, "url": url});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapImage{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapImage_Batch on List<AMapImage?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_title_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapImage::get_title_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_url_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapImage::get_url_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_title_batch(List<String> title) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapImage::set_title_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "title": title[__i__]}]);
}
Future<void> set_url_batch(List<String> url) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapImage::set_url_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "url": url[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapIndoorData extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapIndoorData';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapIndoorData> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapIndoorData',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapIndoorData>(__result__)!;
}
static Future<List<AMapIndoorData>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapIndoorData',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapIndoorData>(it))
.where((element) => element !=null)
.cast<AMapIndoorData>()
.toList() ?? <AMapIndoorData>[];
}
//endregion
//region getters
Future<int?> get_floor() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapIndoorData::get_floor", {'__this__': this});
return __result__;
}
Future<String?> get_floorName() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapIndoorData::get_floorName", {'__this__': this});
return __result__;
}
Future<String?> get_pid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapIndoorData::get_pid", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_floor(int floor) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapIndoorData::set_floor', <String, dynamic>{'__this__': this, "floor": floor});
}
Future<void> set_floorName(String floorName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapIndoorData::set_floorName', <String, dynamic>{'__this__': this, "floorName": floorName});
}
Future<void> set_pid(String pid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapIndoorData::set_pid', <String, dynamic>{'__this__': this, "pid": pid});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapIndoorData{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapIndoorData_Batch on List<AMapIndoorData?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_floor_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapIndoorData::get_floor_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_floorName_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapIndoorData::get_floorName_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_pid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapIndoorData::get_pid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_floor_batch(List<int> floor) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapIndoorData::set_floor_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "floor": floor[__i__]}]);
}
Future<void> set_floorName_batch(List<String> floorName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapIndoorData::set_floorName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "floorName": floorName[__i__]}]);
}
Future<void> set_pid_batch(List<String> pid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapIndoorData::set_pid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pid": pid[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapInputTipsSearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapInputTipsSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapInputTipsSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapInputTipsSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapInputTipsSearchRequest>(__result__)!;
}
static Future<List<AMapInputTipsSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapInputTipsSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapInputTipsSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapInputTipsSearchRequest>()
.toList() ?? <AMapInputTipsSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_types() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_types", {'__this__': this});
return __result__;
}
Future<bool?> get_cityLimit() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_cityLimit", {'__this__': this});
return __result__;
}
Future<String?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_location", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_types(String types) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_types', <String, dynamic>{'__this__': this, "types": types});
}
Future<void> set_cityLimit(bool cityLimit) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_cityLimit', <String, dynamic>{'__this__': this, "cityLimit": cityLimit});
}
Future<void> set_location(String location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_location', <String, dynamic>{'__this__': this, "location": location});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapInputTipsSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapInputTipsSearchRequest_Batch on List<AMapInputTipsSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_types_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_types_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_cityLimit_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_cityLimit_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<String?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchRequest::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_types_batch(List<String> types) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_types_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "types": types[__i__]}]);
}
Future<void> set_cityLimit_batch(List<bool> cityLimit) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_cityLimit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cityLimit": cityLimit[__i__]}]);
}
Future<void> set_location_batch(List<String> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchRequest::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapInputTipsSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapInputTipsSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapInputTipsSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapInputTipsSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapInputTipsSearchResponse>(__result__)!;
}
static Future<List<AMapInputTipsSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapInputTipsSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapInputTipsSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapInputTipsSearchResponse>()
.toList() ?? <AMapInputTipsSearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<List<AMapTip>?> get_tips() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchResponse::get_tips", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTip>(it)).where((e) => e != null).cast<AMapTip>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_tips(List<AMapTip> tips) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchResponse::set_tips', <String, dynamic>{'__this__': this, "tips": tips});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapInputTipsSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapInputTipsSearchResponse_Batch on List<AMapInputTipsSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapTip>?>> get_tips_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapInputTipsSearchResponse::get_tips_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTip>(it)).where((e) => e != null).cast<AMapTip>().toList()).cast<List<AMapTip>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_tips_batch(List<List<AMapTip>> tips) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapInputTipsSearchResponse::set_tips_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tips": tips[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,281 @@
// 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_search_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 AMapLocalDayWeatherForecast extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapLocalDayWeatherForecast';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapLocalDayWeatherForecast> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapLocalDayWeatherForecast',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapLocalDayWeatherForecast>(__result__)!;
}
static Future<List<AMapLocalDayWeatherForecast>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapLocalDayWeatherForecast',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapLocalDayWeatherForecast>(it))
.where((element) => element !=null)
.cast<AMapLocalDayWeatherForecast>()
.toList() ?? <AMapLocalDayWeatherForecast>[];
}
//endregion
//region getters
Future<String?> get_date() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_date", {'__this__': this});
return __result__;
}
Future<String?> get_week() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_week", {'__this__': this});
return __result__;
}
Future<String?> get_dayWeather() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayWeather", {'__this__': this});
return __result__;
}
Future<String?> get_nightWeather() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightWeather", {'__this__': this});
return __result__;
}
Future<String?> get_dayTemp() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayTemp", {'__this__': this});
return __result__;
}
Future<String?> get_nightTemp() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightTemp", {'__this__': this});
return __result__;
}
Future<String?> get_dayWind() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayWind", {'__this__': this});
return __result__;
}
Future<String?> get_nightWind() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightWind", {'__this__': this});
return __result__;
}
Future<String?> get_dayPower() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayPower", {'__this__': this});
return __result__;
}
Future<String?> get_nightPower() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightPower", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_date(String date) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_date', <String, dynamic>{'__this__': this, "date": date});
}
Future<void> set_week(String week) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_week', <String, dynamic>{'__this__': this, "week": week});
}
Future<void> set_dayWeather(String dayWeather) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayWeather', <String, dynamic>{'__this__': this, "dayWeather": dayWeather});
}
Future<void> set_nightWeather(String nightWeather) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightWeather', <String, dynamic>{'__this__': this, "nightWeather": nightWeather});
}
Future<void> set_dayTemp(String dayTemp) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayTemp', <String, dynamic>{'__this__': this, "dayTemp": dayTemp});
}
Future<void> set_nightTemp(String nightTemp) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightTemp', <String, dynamic>{'__this__': this, "nightTemp": nightTemp});
}
Future<void> set_dayWind(String dayWind) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayWind', <String, dynamic>{'__this__': this, "dayWind": dayWind});
}
Future<void> set_nightWind(String nightWind) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightWind', <String, dynamic>{'__this__': this, "nightWind": nightWind});
}
Future<void> set_dayPower(String dayPower) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayPower', <String, dynamic>{'__this__': this, "dayPower": dayPower});
}
Future<void> set_nightPower(String nightPower) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightPower', <String, dynamic>{'__this__': this, "nightPower": nightPower});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapLocalDayWeatherForecast{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapLocalDayWeatherForecast_Batch on List<AMapLocalDayWeatherForecast?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_date_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_date_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_week_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_week_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_dayWeather_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayWeather_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_nightWeather_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightWeather_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_dayTemp_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayTemp_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_nightTemp_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightTemp_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_dayWind_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayWind_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_nightWind_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightWind_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_dayPower_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_dayPower_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_nightPower_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalDayWeatherForecast::get_nightPower_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_date_batch(List<String> date) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_date_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "date": date[__i__]}]);
}
Future<void> set_week_batch(List<String> week) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_week_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "week": week[__i__]}]);
}
Future<void> set_dayWeather_batch(List<String> dayWeather) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayWeather_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "dayWeather": dayWeather[__i__]}]);
}
Future<void> set_nightWeather_batch(List<String> nightWeather) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightWeather_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "nightWeather": nightWeather[__i__]}]);
}
Future<void> set_dayTemp_batch(List<String> dayTemp) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayTemp_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "dayTemp": dayTemp[__i__]}]);
}
Future<void> set_nightTemp_batch(List<String> nightTemp) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightTemp_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "nightTemp": nightTemp[__i__]}]);
}
Future<void> set_dayWind_batch(List<String> dayWind) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayWind_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "dayWind": dayWind[__i__]}]);
}
Future<void> set_nightWind_batch(List<String> nightWind) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightWind_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "nightWind": nightWind[__i__]}]);
}
Future<void> set_dayPower_batch(List<String> dayPower) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_dayPower_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "dayPower": dayPower[__i__]}]);
}
Future<void> set_nightPower_batch(List<String> nightPower) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalDayWeatherForecast::set_nightPower_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "nightPower": nightPower[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapLocalWeatherForecast extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapLocalWeatherForecast';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapLocalWeatherForecast> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapLocalWeatherForecast',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapLocalWeatherForecast>(__result__)!;
}
static Future<List<AMapLocalWeatherForecast>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapLocalWeatherForecast',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapLocalWeatherForecast>(it))
.where((element) => element !=null)
.cast<AMapLocalWeatherForecast>()
.toList() ?? <AMapLocalWeatherForecast>[];
}
//endregion
//region getters
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_province() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_province", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_reportTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_reportTime", {'__this__': this});
return __result__;
}
Future<List<AMapLocalDayWeatherForecast>?> get_casts() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_casts", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapLocalDayWeatherForecast>(it)).where((e) => e != null).cast<AMapLocalDayWeatherForecast>().toList();
}
//endregion
//region setters
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_province(String province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_province', <String, dynamic>{'__this__': this, "province": province});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_reportTime(String reportTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_reportTime', <String, dynamic>{'__this__': this, "reportTime": reportTime});
}
Future<void> set_casts(List<AMapLocalDayWeatherForecast> casts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_casts', <String, dynamic>{'__this__': this, "casts": casts});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapLocalWeatherForecast{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapLocalWeatherForecast_Batch on List<AMapLocalWeatherForecast?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_province_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_province_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_reportTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_reportTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<List<AMapLocalDayWeatherForecast>?>> get_casts_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherForecast::get_casts_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapLocalDayWeatherForecast>(it)).where((e) => e != null).cast<AMapLocalDayWeatherForecast>().toList()).cast<List<AMapLocalDayWeatherForecast>?>().toList();
}
//endregion
//region setters
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_province_batch(List<String> province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_province_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "province": province[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_reportTime_batch(List<String> reportTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_reportTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "reportTime": reportTime[__i__]}]);
}
Future<void> set_casts_batch(List<List<AMapLocalDayWeatherForecast>> casts) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherForecast::set_casts_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "casts": casts[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,261 @@
// 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_search_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 AMapLocalWeatherLive extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapLocalWeatherLive';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapLocalWeatherLive> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapLocalWeatherLive',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapLocalWeatherLive>(__result__)!;
}
static Future<List<AMapLocalWeatherLive>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapLocalWeatherLive',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapLocalWeatherLive>(it))
.where((element) => element !=null)
.cast<AMapLocalWeatherLive>()
.toList() ?? <AMapLocalWeatherLive>[];
}
//endregion
//region getters
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_province() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_province", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_weather() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_weather", {'__this__': this});
return __result__;
}
Future<String?> get_temperature() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_temperature", {'__this__': this});
return __result__;
}
Future<String?> get_windDirection() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_windDirection", {'__this__': this});
return __result__;
}
Future<String?> get_windPower() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_windPower", {'__this__': this});
return __result__;
}
Future<String?> get_humidity() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_humidity", {'__this__': this});
return __result__;
}
Future<String?> get_reportTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_reportTime", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_province(String province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_province', <String, dynamic>{'__this__': this, "province": province});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_weather(String weather) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_weather', <String, dynamic>{'__this__': this, "weather": weather});
}
Future<void> set_temperature(String temperature) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_temperature', <String, dynamic>{'__this__': this, "temperature": temperature});
}
Future<void> set_windDirection(String windDirection) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_windDirection', <String, dynamic>{'__this__': this, "windDirection": windDirection});
}
Future<void> set_windPower(String windPower) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_windPower', <String, dynamic>{'__this__': this, "windPower": windPower});
}
Future<void> set_humidity(String humidity) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_humidity', <String, dynamic>{'__this__': this, "humidity": humidity});
}
Future<void> set_reportTime(String reportTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_reportTime', <String, dynamic>{'__this__': this, "reportTime": reportTime});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapLocalWeatherLive{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapLocalWeatherLive_Batch on List<AMapLocalWeatherLive?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_province_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_province_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_weather_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_weather_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_temperature_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_temperature_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_windDirection_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_windDirection_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_windPower_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_windPower_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_humidity_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_humidity_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_reportTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocalWeatherLive::get_reportTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_province_batch(List<String> province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_province_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "province": province[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_weather_batch(List<String> weather) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_weather_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "weather": weather[__i__]}]);
}
Future<void> set_temperature_batch(List<String> temperature) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_temperature_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "temperature": temperature[__i__]}]);
}
Future<void> set_windDirection_batch(List<String> windDirection) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_windDirection_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "windDirection": windDirection[__i__]}]);
}
Future<void> set_windPower_batch(List<String> windPower) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_windPower_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "windPower": windPower[__i__]}]);
}
Future<void> set_humidity_batch(List<String> humidity) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_humidity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "humidity": humidity[__i__]}]);
}
Future<void> set_reportTime_batch(List<String> reportTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocalWeatherLive::set_reportTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "reportTime": reportTime[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapLocationShareSearchRequest extends AMapShareSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapLocationShareSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapLocationShareSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapLocationShareSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapLocationShareSearchRequest>(__result__)!;
}
static Future<List<AMapLocationShareSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapLocationShareSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapLocationShareSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapLocationShareSearchRequest>()
.toList() ?? <AMapLocationShareSearchRequest>[];
}
//endregion
//region getters
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocationShareSearchRequest::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocationShareSearchRequest::get_name", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocationShareSearchRequest::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocationShareSearchRequest::set_name', <String, dynamic>{'__this__': this, "name": name});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapLocationShareSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapLocationShareSearchRequest_Batch on List<AMapLocationShareSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocationShareSearchRequest::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapLocationShareSearchRequest::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocationShareSearchRequest::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapLocationShareSearchRequest::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapNavigationShareSearchRequest extends AMapShareSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapNavigationShareSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapNavigationShareSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapNavigationShareSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapNavigationShareSearchRequest>(__result__)!;
}
static Future<List<AMapNavigationShareSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapNavigationShareSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapNavigationShareSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapNavigationShareSearchRequest>()
.toList() ?? <AMapNavigationShareSearchRequest>[];
}
//endregion
//region getters
Future<int?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNavigationShareSearchRequest::get_strategy", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_startCoordinate() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNavigationShareSearchRequest::get_startCoordinate", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapGeoPoint?> get_destinationCoordinate() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNavigationShareSearchRequest::get_destinationCoordinate", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
//endregion
//region setters
Future<void> set_strategy(int strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNavigationShareSearchRequest::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_startCoordinate(AMapGeoPoint startCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNavigationShareSearchRequest::set_startCoordinate', <String, dynamic>{'__this__': this, "startCoordinate": startCoordinate});
}
Future<void> set_destinationCoordinate(AMapGeoPoint destinationCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNavigationShareSearchRequest::set_destinationCoordinate', <String, dynamic>{'__this__': this, "destinationCoordinate": destinationCoordinate});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapNavigationShareSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapNavigationShareSearchRequest_Batch on List<AMapNavigationShareSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNavigationShareSearchRequest::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapGeoPoint?>> get_startCoordinate_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNavigationShareSearchRequest::get_startCoordinate_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapGeoPoint?>> get_destinationCoordinate_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNavigationShareSearchRequest::get_destinationCoordinate_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
//endregion
//region setters
Future<void> set_strategy_batch(List<int> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNavigationShareSearchRequest::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_startCoordinate_batch(List<AMapGeoPoint> startCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNavigationShareSearchRequest::set_startCoordinate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startCoordinate": startCoordinate[__i__]}]);
}
Future<void> set_destinationCoordinate_batch(List<AMapGeoPoint> destinationCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNavigationShareSearchRequest::set_destinationCoordinate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationCoordinate": destinationCoordinate[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,233 @@
// 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_search_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 AMapNearbySearchManager extends NSObject {
//region constants
static const String name__ = 'AMapNearbySearchManager';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
//endregion
//region getters
Future<double?> get_uploadTimeInterval() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_uploadTimeInterval", {'__this__': this});
return __result__;
}
Future<bool?> get_isAutoUploading() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_isAutoUploading", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uploadTimeInterval(double uploadTimeInterval) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_uploadTimeInterval', <String, dynamic>{'__this__': this, "uploadTimeInterval": uploadTimeInterval});
}
Future<void> set_delegate(AMapNearbySearchManagerDelegate delegate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_delegate', <String, dynamic>{'__this__': this, "delegate": delegate});
}
//endregion
//region methods
static Future<AMapNearbySearchManager?> sharedInstance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapNearbySearchManager::sharedInstance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::sharedInstance', );
// handle native call
return AmapSearchFluttifyIOSAs<AMapNearbySearchManager>(__result__);
}
Future<void> startAutoUploadNearbyInfo() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::startAutoUploadNearbyInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::startAutoUploadNearbyInfo', {"__this__": this});
// handle native call
return __result__;
}
Future<void> stopAutoUploadNearbyInfo() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::stopAutoUploadNearbyInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::stopAutoUploadNearbyInfo', {"__this__": this});
// handle native call
return __result__;
}
Future<bool?> uploadNearbyInfo(AMapNearbyUploadInfo info) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::uploadNearbyInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::uploadNearbyInfo', {"info": info, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> clearUserInfoWithID(String userID) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::clearUserInfoWithID([\'userID\':$userID])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::clearUserInfoWithID', {"userID": userID, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'AMapNearbySearchManager{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapNearbySearchManager_Batch on List<AMapNearbySearchManager?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<double?>> get_uploadTimeInterval_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_uploadTimeInterval_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<bool?>> get_isAutoUploading_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_isAutoUploading_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
//region setters
Future<void> set_uploadTimeInterval_batch(List<double> uploadTimeInterval) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_uploadTimeInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uploadTimeInterval": uploadTimeInterval[__i__]}]);
}
//endregion
//region methods
static Future<List<AMapNearbySearchManager?>> sharedInstance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::sharedInstance_batch', );
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapNearbySearchManager>(__result__)).cast<AMapNearbySearchManager?>().toList();
}
Future<List<void>> startAutoUploadNearbyInfo_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::startAutoUploadNearbyInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> stopAutoUploadNearbyInfo_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::stopAutoUploadNearbyInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> uploadNearbyInfo_batch(List<AMapNearbyUploadInfo> info) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::uploadNearbyInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"info": info[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> clearUserInfoWithID_batch(List<String> userID) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::clearUserInfoWithID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"userID": userID[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
}

View File

@ -0,0 +1,89 @@
// 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_search_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 _AMapNearbySearchManagerDelegate_SUB extends NSObject with AMapNearbySearchManagerDelegate {}
mixin AMapNearbySearchManagerDelegate on NSObject {
static AMapNearbySearchManagerDelegate subInstance() => _AMapNearbySearchManagerDelegate_SUB();
static Future<AMapNearbySearchManagerDelegate> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManagerDelegate::createAnonymous__');
final __object__ = AmapSearchFluttifyIOSAs<AMapNearbySearchManagerDelegate>(__result__)!;
// handle callback
MethodChannel('AMapNearbySearchManagerDelegate::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'nearbyInfoForUploading':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.nearbyInfoForUploading?.call([\'manager\':${args['manager']}])');
}
// handle the native call
__object__.nearbyInfoForUploading?.call(AmapSearchFluttifyIOSAs<AMapNearbySearchManager>(args['manager']));
break;
case 'onNearbyInfoUploadedWithError':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onNearbyInfoUploadedWithError?.call([\'error\':${args['error']}])');
}
// handle the native call
__object__.onNearbyInfoUploadedWithError?.call(AmapSearchFluttifyIOSAs<NSError>(args['error']));
break;
case 'onUserInfoClearedWithError':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onUserInfoClearedWithError?.call([\'error\':${args['error']}])');
}
// handle the native call
__object__.onUserInfoClearedWithError?.call(AmapSearchFluttifyIOSAs<NSError>(args['error']));
break;
default:
throw MissingPluginException('方法${methodCall.method}未实现');
break;
}
} catch (e) {
debugPrint(e.toString());
rethrow;
}
});
return __object__;
}
@override
final String tag__ = 'amap_search_fluttify';
Future<AMapNearbyUploadInfo?> Function(AMapNearbySearchManager? manager)? nearbyInfoForUploading;
Future<void> Function(NSError? error)? onNearbyInfoUploadedWithError;
Future<void> Function(NSError? error)? onUserInfoClearedWithError;
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapNearbySearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapNearbySearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapNearbySearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapNearbySearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapNearbySearchRequest>(__result__)!;
}
static Future<List<AMapNearbySearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapNearbySearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapNearbySearchRequest>(it))
.where((element) => element !=null)
.cast<AMapNearbySearchRequest>()
.toList() ?? <AMapNearbySearchRequest>[];
}
//endregion
//region getters
Future<AMapGeoPoint?> get_center() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_center", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<int?> get_radius() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_radius", {'__this__': this});
return __result__;
}
Future<AMapNearbySearchType?> get_searchType() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_searchType", {'__this__': this});
return (__result__ as int).toAMapNearbySearchType();
}
Future<int?> get_timeRange() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_timeRange", {'__this__': this});
return __result__;
}
Future<int?> get_limit() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_limit", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_center(AMapGeoPoint center) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_center', <String, dynamic>{'__this__': this, "center": center});
}
Future<void> set_radius(int radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_radius', <String, dynamic>{'__this__': this, "radius": radius});
}
Future<void> set_searchType(AMapNearbySearchType searchType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_searchType', <String, dynamic>{'__this__': this, "searchType": searchType.toValue()});
}
Future<void> set_timeRange(int timeRange) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_timeRange', <String, dynamic>{'__this__': this, "timeRange": timeRange});
}
Future<void> set_limit(int limit) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_limit', <String, dynamic>{'__this__': this, "limit": limit});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapNearbySearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapNearbySearchRequest_Batch on List<AMapNearbySearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPoint?>> get_center_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_center_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<int?>> get_radius_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_radius_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapNearbySearchType?>> get_searchType_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_searchType_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as int).toAMapNearbySearchType()).cast<AMapNearbySearchType?>().toList();
}
Future<List<int?>> get_timeRange_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_timeRange_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_limit_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchRequest::get_limit_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_center_batch(List<AMapGeoPoint> center) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_center_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "center": center[__i__]}]);
}
Future<void> set_radius_batch(List<int> radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_radius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "radius": radius[__i__]}]);
}
Future<void> set_searchType_batch(List<AMapNearbySearchType> searchType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_searchType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "searchType": searchType[__i__].toValue()}]);
}
Future<void> set_timeRange_batch(List<int> timeRange) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_timeRange_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "timeRange": timeRange[__i__]}]);
}
Future<void> set_limit_batch(List<int> limit) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchRequest::set_limit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "limit": limit[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapNearbySearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapNearbySearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapNearbySearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapNearbySearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapNearbySearchResponse>(__result__)!;
}
static Future<List<AMapNearbySearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapNearbySearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapNearbySearchResponse>(it))
.where((element) => element !=null)
.cast<AMapNearbySearchResponse>()
.toList() ?? <AMapNearbySearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<List<AMapNearbyUserInfo>?> get_infos() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchResponse::get_infos", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapNearbyUserInfo>(it)).where((e) => e != null).cast<AMapNearbyUserInfo>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_infos(List<AMapNearbyUserInfo> infos) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchResponse::set_infos', <String, dynamic>{'__this__': this, "infos": infos});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapNearbySearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapNearbySearchResponse_Batch on List<AMapNearbySearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapNearbyUserInfo>?>> get_infos_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchResponse::get_infos_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapNearbyUserInfo>(it)).where((e) => e != null).cast<AMapNearbyUserInfo>().toList()).cast<List<AMapNearbyUserInfo>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_infos_batch(List<List<AMapNearbyUserInfo>> infos) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchResponse::set_infos_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "infos": infos[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,29 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapNearbySearchType {
AMapNearbySearchTypeLiner /* 0 */,
AMapNearbySearchTypeDriving /* 1 */
}
extension AMapNearbySearchTypeToX on AMapNearbySearchType {
int toValue() {
switch (this) {
case AMapNearbySearchType.AMapNearbySearchTypeLiner: return 0;
case AMapNearbySearchType.AMapNearbySearchTypeDriving: return 1;
default: return 0;
}
}
}
extension AMapNearbySearchTypeFromX on int {
AMapNearbySearchType toAMapNearbySearchType() {
switch (this) {
case 0: return AMapNearbySearchType.AMapNearbySearchTypeLiner;
case 1: return AMapNearbySearchType.AMapNearbySearchTypeDriving;
default: return AMapNearbySearchType.values[this + 0];
}
}
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapNearbyUploadInfo extends NSObject with NSCopying {
//region constants
static const String name__ = 'AMapNearbyUploadInfo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapNearbyUploadInfo> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapNearbyUploadInfo',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapNearbyUploadInfo>(__result__)!;
}
static Future<List<AMapNearbyUploadInfo>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapNearbyUploadInfo',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapNearbyUploadInfo>(it))
.where((element) => element !=null)
.cast<AMapNearbyUploadInfo>()
.toList() ?? <AMapNearbyUploadInfo>[];
}
//endregion
//region getters
Future<String?> get_userID() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUploadInfo::get_userID", {'__this__': this});
return __result__;
}
Future<AMapSearchCoordinateType?> get_coordinateType() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUploadInfo::get_coordinateType", {'__this__': this});
return (__result__ as int).toAMapSearchCoordinateType();
}
Future<CLLocationCoordinate2D?> get_coordinate() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUploadInfo::get_coordinate", {'__this__': this});
return AmapSearchFluttifyIOSAs<CLLocationCoordinate2D>(__result__);
}
//endregion
//region setters
Future<void> set_userID(String userID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUploadInfo::set_userID', <String, dynamic>{'__this__': this, "userID": userID});
}
Future<void> set_coordinateType(AMapSearchCoordinateType coordinateType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUploadInfo::set_coordinateType', <String, dynamic>{'__this__': this, "coordinateType": coordinateType.toValue()});
}
Future<void> set_coordinate(CLLocationCoordinate2D coordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUploadInfo::set_coordinate', <String, dynamic>{'__this__': this, "coordinate": coordinate});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapNearbyUploadInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapNearbyUploadInfo_Batch on List<AMapNearbyUploadInfo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_userID_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUploadInfo::get_userID_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapSearchCoordinateType?>> get_coordinateType_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUploadInfo::get_coordinateType_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as int).toAMapSearchCoordinateType()).cast<AMapSearchCoordinateType?>().toList();
}
Future<List<CLLocationCoordinate2D?>> get_coordinate_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUploadInfo::get_coordinate_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<CLLocationCoordinate2D>(__result__)).cast<CLLocationCoordinate2D?>().toList();
}
//endregion
//region setters
Future<void> set_userID_batch(List<String> userID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUploadInfo::set_userID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "userID": userID[__i__]}]);
}
Future<void> set_coordinateType_batch(List<AMapSearchCoordinateType> coordinateType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUploadInfo::set_coordinateType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "coordinateType": coordinateType[__i__].toValue()}]);
}
Future<void> set_coordinate_batch(List<CLLocationCoordinate2D> coordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUploadInfo::set_coordinate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "coordinate": coordinate[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,161 @@
// 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_search_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 AMapNearbyUserInfo extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapNearbyUserInfo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapNearbyUserInfo> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapNearbyUserInfo',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapNearbyUserInfo>(__result__)!;
}
static Future<List<AMapNearbyUserInfo>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapNearbyUserInfo',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapNearbyUserInfo>(it))
.where((element) => element !=null)
.cast<AMapNearbyUserInfo>()
.toList() ?? <AMapNearbyUserInfo>[];
}
//endregion
//region getters
Future<String?> get_userID() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_userID", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<double?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_distance", {'__this__': this});
return __result__;
}
Future<double?> get_updatetime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_updatetime", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_userID(String userID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_userID', <String, dynamic>{'__this__': this, "userID": userID});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_distance(double distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_updatetime(double updatetime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_updatetime', <String, dynamic>{'__this__': this, "updatetime": updatetime});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapNearbyUserInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapNearbyUserInfo_Batch on List<AMapNearbyUserInfo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_userID_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_userID_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<double?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<double?>> get_updatetime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbyUserInfo::get_updatetime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
//endregion
//region setters
Future<void> set_userID_batch(List<String> userID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_userID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "userID": userID[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_distance_batch(List<double> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_updatetime_batch(List<double> updatetime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbyUserInfo::set_updatetime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "updatetime": updatetime[__i__]}]);
}
//endregion
//region methods
//endregion
}

661
lib/src/ios/AMapPOI.g.dart Normal file
View File

@ -0,0 +1,661 @@
// 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_search_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 AMapPOI extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOI';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOI> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOI',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOI>(__result__)!;
}
static Future<List<AMapPOI>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOI',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOI>(it))
.where((element) => element !=null)
.cast<AMapPOI>()
.toList() ?? <AMapPOI>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_type() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_type", {'__this__': this});
return __result__;
}
Future<String?> get_typecode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_typecode", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_address() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_address", {'__this__': this});
return __result__;
}
Future<String?> get_tel() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_tel", {'__this__': this});
return __result__;
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_distance", {'__this__': this});
return __result__;
}
Future<String?> get_parkingType() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_parkingType", {'__this__': this});
return __result__;
}
Future<String?> get_shopID() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_shopID", {'__this__': this});
return __result__;
}
Future<String?> get_postcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_postcode", {'__this__': this});
return __result__;
}
Future<String?> get_website() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_website", {'__this__': this});
return __result__;
}
Future<String?> get_email() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_email", {'__this__': this});
return __result__;
}
Future<String?> get_province() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_province", {'__this__': this});
return __result__;
}
Future<String?> get_pcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_pcode", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_city", {'__this__': this});
return __result__;
}
Future<String?> get_citycode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_citycode", {'__this__': this});
return __result__;
}
Future<String?> get_district() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_district", {'__this__': this});
return __result__;
}
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_gridcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_gridcode", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_enterLocation() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_enterLocation", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapGeoPoint?> get_exitLocation() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_exitLocation", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_direction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_direction", {'__this__': this});
return __result__;
}
Future<bool?> get_hasIndoorMap() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_hasIndoorMap", {'__this__': this});
return __result__;
}
Future<String?> get_businessArea() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_businessArea", {'__this__': this});
return __result__;
}
Future<AMapIndoorData?> get_indoorData() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_indoorData", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapIndoorData>(__result__);
}
Future<List<AMapSubPOI>?> get_subPOIs() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_subPOIs", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapSubPOI>(it)).where((e) => e != null).cast<AMapSubPOI>().toList();
}
Future<List<AMapImage>?> get_images() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_images", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapImage>(it)).where((e) => e != null).cast<AMapImage>().toList();
}
Future<AMapPOIExtension?> get_extensionInfo() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_extensionInfo", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapPOIExtension>(__result__);
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_type(String type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_type', <String, dynamic>{'__this__': this, "type": type});
}
Future<void> set_typecode(String typecode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_typecode', <String, dynamic>{'__this__': this, "typecode": typecode});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_address(String address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_address', <String, dynamic>{'__this__': this, "address": address});
}
Future<void> set_tel(String tel) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_tel', <String, dynamic>{'__this__': this, "tel": tel});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_parkingType(String parkingType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_parkingType', <String, dynamic>{'__this__': this, "parkingType": parkingType});
}
Future<void> set_shopID(String shopID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_shopID', <String, dynamic>{'__this__': this, "shopID": shopID});
}
Future<void> set_postcode(String postcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_postcode', <String, dynamic>{'__this__': this, "postcode": postcode});
}
Future<void> set_website(String website) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_website', <String, dynamic>{'__this__': this, "website": website});
}
Future<void> set_email(String email) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_email', <String, dynamic>{'__this__': this, "email": email});
}
Future<void> set_province(String province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_province', <String, dynamic>{'__this__': this, "province": province});
}
Future<void> set_pcode(String pcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_pcode', <String, dynamic>{'__this__': this, "pcode": pcode});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_citycode(String citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_citycode', <String, dynamic>{'__this__': this, "citycode": citycode});
}
Future<void> set_district(String district) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_district', <String, dynamic>{'__this__': this, "district": district});
}
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_gridcode(String gridcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_gridcode', <String, dynamic>{'__this__': this, "gridcode": gridcode});
}
Future<void> set_enterLocation(AMapGeoPoint enterLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_enterLocation', <String, dynamic>{'__this__': this, "enterLocation": enterLocation});
}
Future<void> set_exitLocation(AMapGeoPoint exitLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_exitLocation', <String, dynamic>{'__this__': this, "exitLocation": exitLocation});
}
Future<void> set_direction(String direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_direction', <String, dynamic>{'__this__': this, "direction": direction});
}
Future<void> set_hasIndoorMap(bool hasIndoorMap) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_hasIndoorMap', <String, dynamic>{'__this__': this, "hasIndoorMap": hasIndoorMap});
}
Future<void> set_businessArea(String businessArea) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_businessArea', <String, dynamic>{'__this__': this, "businessArea": businessArea});
}
Future<void> set_indoorData(AMapIndoorData indoorData) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_indoorData', <String, dynamic>{'__this__': this, "indoorData": indoorData});
}
Future<void> set_subPOIs(List<AMapSubPOI> subPOIs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_subPOIs', <String, dynamic>{'__this__': this, "subPOIs": subPOIs});
}
Future<void> set_images(List<AMapImage> images) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_images', <String, dynamic>{'__this__': this, "images": images});
}
Future<void> set_extensionInfo(AMapPOIExtension extensionInfo) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_extensionInfo', <String, dynamic>{'__this__': this, "extensionInfo": extensionInfo});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOI{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOI_Batch on List<AMapPOI?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_type_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_type_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_typecode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_typecode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_address_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_address_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_tel_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_tel_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_parkingType_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_parkingType_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_shopID_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_shopID_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_postcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_postcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_website_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_website_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_email_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_email_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_province_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_province_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_pcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_pcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_citycode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_citycode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_district_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_district_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_gridcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_gridcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_enterLocation_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_enterLocation_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapGeoPoint?>> get_exitLocation_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_exitLocation_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_direction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_direction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_hasIndoorMap_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_hasIndoorMap_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<String?>> get_businessArea_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_businessArea_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapIndoorData?>> get_indoorData_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_indoorData_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapIndoorData>(__result__)).cast<AMapIndoorData?>().toList();
}
Future<List<List<AMapSubPOI>?>> get_subPOIs_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_subPOIs_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapSubPOI>(it)).where((e) => e != null).cast<AMapSubPOI>().toList()).cast<List<AMapSubPOI>?>().toList();
}
Future<List<List<AMapImage>?>> get_images_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_images_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapImage>(it)).where((e) => e != null).cast<AMapImage>().toList()).cast<List<AMapImage>?>().toList();
}
Future<List<AMapPOIExtension?>> get_extensionInfo_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOI::get_extensionInfo_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapPOIExtension>(__result__)).cast<AMapPOIExtension?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_type_batch(List<String> type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "type": type[__i__]}]);
}
Future<void> set_typecode_batch(List<String> typecode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_typecode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "typecode": typecode[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_address_batch(List<String> address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_address_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "address": address[__i__]}]);
}
Future<void> set_tel_batch(List<String> tel) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_tel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tel": tel[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_parkingType_batch(List<String> parkingType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_parkingType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "parkingType": parkingType[__i__]}]);
}
Future<void> set_shopID_batch(List<String> shopID) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_shopID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "shopID": shopID[__i__]}]);
}
Future<void> set_postcode_batch(List<String> postcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_postcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "postcode": postcode[__i__]}]);
}
Future<void> set_website_batch(List<String> website) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_website_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "website": website[__i__]}]);
}
Future<void> set_email_batch(List<String> email) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_email_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "email": email[__i__]}]);
}
Future<void> set_province_batch(List<String> province) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_province_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "province": province[__i__]}]);
}
Future<void> set_pcode_batch(List<String> pcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_pcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pcode": pcode[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_citycode_batch(List<String> citycode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_citycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "citycode": citycode[__i__]}]);
}
Future<void> set_district_batch(List<String> district) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_district_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "district": district[__i__]}]);
}
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_gridcode_batch(List<String> gridcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_gridcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "gridcode": gridcode[__i__]}]);
}
Future<void> set_enterLocation_batch(List<AMapGeoPoint> enterLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_enterLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enterLocation": enterLocation[__i__]}]);
}
Future<void> set_exitLocation_batch(List<AMapGeoPoint> exitLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_exitLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "exitLocation": exitLocation[__i__]}]);
}
Future<void> set_direction_batch(List<String> direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_direction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "direction": direction[__i__]}]);
}
Future<void> set_hasIndoorMap_batch(List<bool> hasIndoorMap) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_hasIndoorMap_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "hasIndoorMap": hasIndoorMap[__i__]}]);
}
Future<void> set_businessArea_batch(List<String> businessArea) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_businessArea_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "businessArea": businessArea[__i__]}]);
}
Future<void> set_indoorData_batch(List<AMapIndoorData> indoorData) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_indoorData_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "indoorData": indoorData[__i__]}]);
}
Future<void> set_subPOIs_batch(List<List<AMapSubPOI>> subPOIs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_subPOIs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "subPOIs": subPOIs[__i__]}]);
}
Future<void> set_images_batch(List<List<AMapImage>> images) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_images_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "images": images[__i__]}]);
}
Future<void> set_extensionInfo_batch(List<AMapPOIExtension> extensionInfo) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOI::set_extensionInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "extensionInfo": extensionInfo[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapPOIAroundSearchRequest extends AMapPOISearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOIAroundSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOIAroundSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOIAroundSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOIAroundSearchRequest>(__result__)!;
}
static Future<List<AMapPOIAroundSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOIAroundSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOIAroundSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapPOIAroundSearchRequest>()
.toList() ?? <AMapPOIAroundSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<int?> get_radius() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_radius", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_city", {'__this__': this});
return __result__;
}
Future<bool?> get_special() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_special", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_radius(int radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_radius', <String, dynamic>{'__this__': this, "radius": radius});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_special(bool special) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_special', <String, dynamic>{'__this__': this, "special": special});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOIAroundSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOIAroundSearchRequest_Batch on List<AMapPOIAroundSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<int?>> get_radius_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_radius_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_special_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIAroundSearchRequest::get_special_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_radius_batch(List<int> radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_radius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "radius": radius[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_special_batch(List<bool> special) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIAroundSearchRequest::set_special_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "special": special[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapPOIExtension extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOIExtension';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOIExtension> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOIExtension',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOIExtension>(__result__)!;
}
static Future<List<AMapPOIExtension>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOIExtension',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOIExtension>(it))
.where((element) => element !=null)
.cast<AMapPOIExtension>()
.toList() ?? <AMapPOIExtension>[];
}
//endregion
//region getters
Future<double?> get_rating() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIExtension::get_rating", {'__this__': this});
return __result__;
}
Future<double?> get_cost() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIExtension::get_cost", {'__this__': this});
return __result__;
}
Future<String?> get_openTime() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIExtension::get_openTime", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_rating(double rating) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIExtension::set_rating', <String, dynamic>{'__this__': this, "rating": rating});
}
Future<void> set_cost(double cost) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIExtension::set_cost', <String, dynamic>{'__this__': this, "cost": cost});
}
Future<void> set_openTime(String openTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIExtension::set_openTime', <String, dynamic>{'__this__': this, "openTime": openTime});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOIExtension{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOIExtension_Batch on List<AMapPOIExtension?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<double?>> get_rating_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIExtension::get_rating_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<double?>> get_cost_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIExtension::get_cost_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<String?>> get_openTime_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIExtension::get_openTime_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_rating_batch(List<double> rating) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIExtension::set_rating_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "rating": rating[__i__]}]);
}
Future<void> set_cost_batch(List<double> cost) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIExtension::set_cost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cost": cost[__i__]}]);
}
Future<void> set_openTime_batch(List<String> openTime) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIExtension::set_openTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "openTime": openTime[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,101 @@
// 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_search_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 AMapPOIIDSearchRequest extends AMapPOISearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOIIDSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOIIDSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOIIDSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOIIDSearchRequest>(__result__)!;
}
static Future<List<AMapPOIIDSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOIIDSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOIIDSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapPOIIDSearchRequest>()
.toList() ?? <AMapPOIIDSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIIDSearchRequest::get_uid", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIIDSearchRequest::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOIIDSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOIIDSearchRequest_Batch on List<AMapPOIIDSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIIDSearchRequest::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIIDSearchRequest::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,161 @@
// 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_search_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 AMapPOIKeywordsSearchRequest extends AMapPOISearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOIKeywordsSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOIKeywordsSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOIKeywordsSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOIKeywordsSearchRequest>(__result__)!;
}
static Future<List<AMapPOIKeywordsSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOIKeywordsSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOIKeywordsSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapPOIKeywordsSearchRequest>()
.toList() ?? <AMapPOIKeywordsSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
Future<String?> get_city() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_city", {'__this__': this});
return __result__;
}
Future<bool?> get_cityLimit() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_cityLimit", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_city(String city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_city', <String, dynamic>{'__this__': this, "city": city});
}
Future<void> set_cityLimit(bool cityLimit) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_cityLimit', <String, dynamic>{'__this__': this, "cityLimit": cityLimit});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_location', <String, dynamic>{'__this__': this, "location": location});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOIKeywordsSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOIKeywordsSearchRequest_Batch on List<AMapPOIKeywordsSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_city_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_city_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_cityLimit_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_cityLimit_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIKeywordsSearchRequest::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_city_batch(List<String> city) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_city_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "city": city[__i__]}]);
}
Future<void> set_cityLimit_batch(List<bool> cityLimit) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_cityLimit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cityLimit": cityLimit[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIKeywordsSearchRequest::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapPOIPolygonSearchRequest extends AMapPOISearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOIPolygonSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOIPolygonSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOIPolygonSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOIPolygonSearchRequest>(__result__)!;
}
static Future<List<AMapPOIPolygonSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOIPolygonSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOIPolygonSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapPOIPolygonSearchRequest>()
.toList() ?? <AMapPOIPolygonSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIPolygonSearchRequest::get_keywords", {'__this__': this});
return __result__;
}
Future<AMapGeoPolygon?> get_polygon() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIPolygonSearchRequest::get_polygon", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__);
}
//endregion
//region setters
Future<void> set_keywords(String keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIPolygonSearchRequest::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_polygon(AMapGeoPolygon polygon) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIPolygonSearchRequest::set_polygon', <String, dynamic>{'__this__': this, "polygon": polygon});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOIPolygonSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOIPolygonSearchRequest_Batch on List<AMapPOIPolygonSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIPolygonSearchRequest::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPolygon?>> get_polygon_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIPolygonSearchRequest::get_polygon_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPolygon>(__result__)).cast<AMapGeoPolygon?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIPolygonSearchRequest::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_polygon_batch(List<AMapGeoPolygon> polygon) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIPolygonSearchRequest::set_polygon_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polygon": polygon[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,221 @@
// 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_search_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 AMapPOISearchBaseRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOISearchBaseRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOISearchBaseRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOISearchBaseRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOISearchBaseRequest>(__result__)!;
}
static Future<List<AMapPOISearchBaseRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOISearchBaseRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOISearchBaseRequest>(it))
.where((element) => element !=null)
.cast<AMapPOISearchBaseRequest>()
.toList() ?? <AMapPOISearchBaseRequest>[];
}
//endregion
//region getters
Future<String?> get_types() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_types", {'__this__': this});
return __result__;
}
Future<int?> get_sortrule() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_sortrule", {'__this__': this});
return __result__;
}
Future<int?> get_offset() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_offset", {'__this__': this});
return __result__;
}
Future<int?> get_page() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_page", {'__this__': this});
return __result__;
}
Future<String?> get_building() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_building", {'__this__': this});
return __result__;
}
Future<bool?> get_requireExtension() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_requireExtension", {'__this__': this});
return __result__;
}
Future<bool?> get_requireSubPOIs() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_requireSubPOIs", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_types(String types) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_types', <String, dynamic>{'__this__': this, "types": types});
}
Future<void> set_sortrule(int sortrule) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_sortrule', <String, dynamic>{'__this__': this, "sortrule": sortrule});
}
Future<void> set_offset(int offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_offset', <String, dynamic>{'__this__': this, "offset": offset});
}
Future<void> set_page(int page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_page', <String, dynamic>{'__this__': this, "page": page});
}
Future<void> set_building(String building) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_building', <String, dynamic>{'__this__': this, "building": building});
}
Future<void> set_requireExtension(bool requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_requireExtension', <String, dynamic>{'__this__': this, "requireExtension": requireExtension});
}
Future<void> set_requireSubPOIs(bool requireSubPOIs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_requireSubPOIs', <String, dynamic>{'__this__': this, "requireSubPOIs": requireSubPOIs});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOISearchBaseRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOISearchBaseRequest_Batch on List<AMapPOISearchBaseRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_types_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_types_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_sortrule_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_sortrule_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_offset_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_offset_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_page_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_page_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_building_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_building_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> get_requireExtension_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_requireExtension_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> get_requireSubPOIs_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchBaseRequest::get_requireSubPOIs_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
//region setters
Future<void> set_types_batch(List<String> types) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_types_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "types": types[__i__]}]);
}
Future<void> set_sortrule_batch(List<int> sortrule) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_sortrule_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sortrule": sortrule[__i__]}]);
}
Future<void> set_offset_batch(List<int> offset) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_offset_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "offset": offset[__i__]}]);
}
Future<void> set_page_batch(List<int> page) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_page_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "page": page[__i__]}]);
}
Future<void> set_building_batch(List<String> building) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_building_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "building": building[__i__]}]);
}
Future<void> set_requireExtension_batch(List<bool> requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_requireExtension_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireExtension": requireExtension[__i__]}]);
}
Future<void> set_requireSubPOIs_batch(List<bool> requireSubPOIs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchBaseRequest::set_requireSubPOIs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireSubPOIs": requireSubPOIs[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,141 @@
// 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_search_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 AMapPOISearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOISearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOISearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOISearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOISearchResponse>(__result__)!;
}
static Future<List<AMapPOISearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOISearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOISearchResponse>(it))
.where((element) => element !=null)
.cast<AMapPOISearchResponse>()
.toList() ?? <AMapPOISearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<AMapSuggestion?> get_suggestion() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchResponse::get_suggestion", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapSuggestion>(__result__);
}
Future<List<AMapPOI>?> get_pois() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchResponse::get_pois", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPOI>(it)).where((e) => e != null).cast<AMapPOI>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_suggestion(AMapSuggestion suggestion) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchResponse::set_suggestion', <String, dynamic>{'__this__': this, "suggestion": suggestion});
}
Future<void> set_pois(List<AMapPOI> pois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchResponse::set_pois', <String, dynamic>{'__this__': this, "pois": pois});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOISearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOISearchResponse_Batch on List<AMapPOISearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapSuggestion?>> get_suggestion_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchResponse::get_suggestion_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapSuggestion>(__result__)).cast<AMapSuggestion?>().toList();
}
Future<List<List<AMapPOI>?>> get_pois_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOISearchResponse::get_pois_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPOI>(it)).where((e) => e != null).cast<AMapPOI>().toList()).cast<List<AMapPOI>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_suggestion_batch(List<AMapSuggestion> suggestion) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchResponse::set_suggestion_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "suggestion": suggestion[__i__]}]);
}
Future<void> set_pois_batch(List<List<AMapPOI>> pois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOISearchResponse::set_pois_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pois": pois[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,161 @@
// 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_search_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 AMapPOIShareSearchRequest extends AMapShareSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPOIShareSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPOIShareSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPOIShareSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPOIShareSearchRequest>(__result__)!;
}
static Future<List<AMapPOIShareSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPOIShareSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPOIShareSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapPOIShareSearchRequest>()
.toList() ?? <AMapPOIShareSearchRequest>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_uid", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_address() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_address", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_address(String address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_address', <String, dynamic>{'__this__': this, "address": address});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPOIShareSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPOIShareSearchRequest_Batch on List<AMapPOIShareSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_address_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIShareSearchRequest::get_address_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_address_batch(List<String> address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIShareSearchRequest::set_address_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "address": address[__i__]}]);
}
//endregion
//region methods
//endregion
}

261
lib/src/ios/AMapPath.g.dart Normal file
View File

@ -0,0 +1,261 @@
// 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_search_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 AMapPath extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapPath';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapPath> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapPath',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapPath>(__result__)!;
}
static Future<List<AMapPath>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapPath',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapPath>(it))
.where((element) => element !=null)
.cast<AMapPath>()
.toList() ?? <AMapPath>[];
}
//endregion
//region getters
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_distance", {'__this__': this});
return __result__;
}
Future<int?> get_duration() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_duration", {'__this__': this});
return __result__;
}
Future<String?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_strategy", {'__this__': this});
return __result__;
}
Future<List<AMapStep>?> get_steps() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_steps", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapStep>(it)).where((e) => e != null).cast<AMapStep>().toList();
}
Future<double?> get_tolls() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_tolls", {'__this__': this});
return __result__;
}
Future<int?> get_tollDistance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_tollDistance", {'__this__': this});
return __result__;
}
Future<int?> get_totalTrafficLights() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_totalTrafficLights", {'__this__': this});
return __result__;
}
Future<int?> get_restriction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_restriction", {'__this__': this});
return __result__;
}
Future<String?> get_polyline() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_polyline", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_duration(int duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
}
Future<void> set_strategy(String strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_steps(List<AMapStep> steps) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_steps', <String, dynamic>{'__this__': this, "steps": steps});
}
Future<void> set_tolls(double tolls) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_tolls', <String, dynamic>{'__this__': this, "tolls": tolls});
}
Future<void> set_tollDistance(int tollDistance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_tollDistance', <String, dynamic>{'__this__': this, "tollDistance": tollDistance});
}
Future<void> set_totalTrafficLights(int totalTrafficLights) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_totalTrafficLights', <String, dynamic>{'__this__': this, "totalTrafficLights": totalTrafficLights});
}
Future<void> set_restriction(int restriction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_restriction', <String, dynamic>{'__this__': this, "restriction": restriction});
}
Future<void> set_polyline(String polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_polyline', <String, dynamic>{'__this__': this, "polyline": polyline});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapPath{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapPath_Batch on List<AMapPath?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_duration_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<List<AMapStep>?>> get_steps_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_steps_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapStep>(it)).where((e) => e != null).cast<AMapStep>().toList()).cast<List<AMapStep>?>().toList();
}
Future<List<double?>> get_tolls_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_tolls_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<int?>> get_tollDistance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_tollDistance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_totalTrafficLights_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_totalTrafficLights_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_restriction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_restriction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_polyline_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPath::get_polyline_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_duration_batch(List<int> duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
}
Future<void> set_strategy_batch(List<String> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_steps_batch(List<List<AMapStep>> steps) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_steps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "steps": steps[__i__]}]);
}
Future<void> set_tolls_batch(List<double> tolls) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_tolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tolls": tolls[__i__]}]);
}
Future<void> set_tollDistance_batch(List<int> tollDistance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_tollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tollDistance": tollDistance[__i__]}]);
}
Future<void> set_totalTrafficLights_batch(List<int> totalTrafficLights) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_totalTrafficLights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "totalTrafficLights": totalTrafficLights[__i__]}]);
}
Future<void> set_restriction_batch(List<int> restriction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_restriction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "restriction": restriction[__i__]}]);
}
Future<void> set_polyline_batch(List<String> polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapPath::set_polyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polyline": polyline[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,301 @@
// 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_search_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 AMapRailway extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRailway';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRailway> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRailway',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRailway>(__result__)!;
}
static Future<List<AMapRailway>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRailway',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRailway>(it))
.where((element) => element !=null)
.cast<AMapRailway>()
.toList() ?? <AMapRailway>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_trip() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_trip", {'__this__': this});
return __result__;
}
Future<String?> get_type() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_type", {'__this__': this});
return __result__;
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_distance", {'__this__': this});
return __result__;
}
Future<int?> get_time() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_time", {'__this__': this});
return __result__;
}
Future<AMapRailwayStation?> get_departureStation() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_departureStation", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapRailwayStation>(__result__);
}
Future<AMapRailwayStation?> get_arrivalStation() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_arrivalStation", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapRailwayStation>(__result__);
}
Future<List<AMapRailwaySpace>?> get_spaces() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_spaces", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRailwaySpace>(it)).where((e) => e != null).cast<AMapRailwaySpace>().toList();
}
Future<List<AMapRailwayStation>?> get_viaStops() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_viaStops", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRailwayStation>(it)).where((e) => e != null).cast<AMapRailwayStation>().toList();
}
Future<List<AMapRailway>?> get_alters() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_alters", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRailway>(it)).where((e) => e != null).cast<AMapRailway>().toList();
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_trip(String trip) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_trip', <String, dynamic>{'__this__': this, "trip": trip});
}
Future<void> set_type(String type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_type', <String, dynamic>{'__this__': this, "type": type});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_time(int time) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_time', <String, dynamic>{'__this__': this, "time": time});
}
Future<void> set_departureStation(AMapRailwayStation departureStation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_departureStation', <String, dynamic>{'__this__': this, "departureStation": departureStation});
}
Future<void> set_arrivalStation(AMapRailwayStation arrivalStation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_arrivalStation', <String, dynamic>{'__this__': this, "arrivalStation": arrivalStation});
}
Future<void> set_spaces(List<AMapRailwaySpace> spaces) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_spaces', <String, dynamic>{'__this__': this, "spaces": spaces});
}
Future<void> set_viaStops(List<AMapRailwayStation> viaStops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_viaStops', <String, dynamic>{'__this__': this, "viaStops": viaStops});
}
Future<void> set_alters(List<AMapRailway> alters) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_alters', <String, dynamic>{'__this__': this, "alters": alters});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRailway{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRailway_Batch on List<AMapRailway?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_trip_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_trip_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_type_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_type_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_time_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_time_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapRailwayStation?>> get_departureStation_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_departureStation_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapRailwayStation>(__result__)).cast<AMapRailwayStation?>().toList();
}
Future<List<AMapRailwayStation?>> get_arrivalStation_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_arrivalStation_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapRailwayStation>(__result__)).cast<AMapRailwayStation?>().toList();
}
Future<List<List<AMapRailwaySpace>?>> get_spaces_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_spaces_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRailwaySpace>(it)).where((e) => e != null).cast<AMapRailwaySpace>().toList()).cast<List<AMapRailwaySpace>?>().toList();
}
Future<List<List<AMapRailwayStation>?>> get_viaStops_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_viaStops_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRailwayStation>(it)).where((e) => e != null).cast<AMapRailwayStation>().toList()).cast<List<AMapRailwayStation>?>().toList();
}
Future<List<List<AMapRailway>?>> get_alters_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailway::get_alters_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRailway>(it)).where((e) => e != null).cast<AMapRailway>().toList()).cast<List<AMapRailway>?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_trip_batch(List<String> trip) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_trip_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "trip": trip[__i__]}]);
}
Future<void> set_type_batch(List<String> type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "type": type[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_time_batch(List<int> time) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_time_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "time": time[__i__]}]);
}
Future<void> set_departureStation_batch(List<AMapRailwayStation> departureStation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_departureStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "departureStation": departureStation[__i__]}]);
}
Future<void> set_arrivalStation_batch(List<AMapRailwayStation> arrivalStation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_arrivalStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "arrivalStation": arrivalStation[__i__]}]);
}
Future<void> set_spaces_batch(List<List<AMapRailwaySpace>> spaces) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_spaces_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "spaces": spaces[__i__]}]);
}
Future<void> set_viaStops_batch(List<List<AMapRailwayStation>> viaStops) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_viaStops_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "viaStops": viaStops[__i__]}]);
}
Future<void> set_alters_batch(List<List<AMapRailway>> alters) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailway::set_alters_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "alters": alters[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapRailwaySpace extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRailwaySpace';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRailwaySpace> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRailwaySpace',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRailwaySpace>(__result__)!;
}
static Future<List<AMapRailwaySpace>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRailwaySpace',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRailwaySpace>(it))
.where((element) => element !=null)
.cast<AMapRailwaySpace>()
.toList() ?? <AMapRailwaySpace>[];
}
//endregion
//region getters
Future<String?> get_code() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwaySpace::get_code", {'__this__': this});
return __result__;
}
Future<double?> get_cost() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwaySpace::get_cost", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_code(String code) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwaySpace::set_code', <String, dynamic>{'__this__': this, "code": code});
}
Future<void> set_cost(double cost) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwaySpace::set_cost', <String, dynamic>{'__this__': this, "cost": cost});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRailwaySpace{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRailwaySpace_Batch on List<AMapRailwaySpace?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_code_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwaySpace::get_code_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<double?>> get_cost_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwaySpace::get_cost_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
//endregion
//region setters
Future<void> set_code_batch(List<String> code) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwaySpace::set_code_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "code": code[__i__]}]);
}
Future<void> set_cost_batch(List<double> cost) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwaySpace::set_cost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cost": cost[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,241 @@
// 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_search_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 AMapRailwayStation extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRailwayStation';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRailwayStation> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRailwayStation',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRailwayStation>(__result__)!;
}
static Future<List<AMapRailwayStation>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRailwayStation',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRailwayStation>(it))
.where((element) => element !=null)
.cast<AMapRailwayStation>()
.toList() ?? <AMapRailwayStation>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_name", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_adcode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_adcode", {'__this__': this});
return __result__;
}
Future<String?> get_time() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_time", {'__this__': this});
return __result__;
}
Future<int?> get_wait() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_wait", {'__this__': this});
return __result__;
}
Future<bool?> get_isStart() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_isStart", {'__this__': this});
return __result__;
}
Future<bool?> get_isEnd() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_isEnd", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_adcode(String adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_adcode', <String, dynamic>{'__this__': this, "adcode": adcode});
}
Future<void> set_time(String time) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_time', <String, dynamic>{'__this__': this, "time": time});
}
Future<void> set_wait(int wait) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_wait', <String, dynamic>{'__this__': this, "wait": wait});
}
Future<void> set_isStart(bool isStart) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_isStart', <String, dynamic>{'__this__': this, "isStart": isStart});
}
Future<void> set_isEnd(bool isEnd) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_isEnd', <String, dynamic>{'__this__': this, "isEnd": isEnd});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRailwayStation{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRailwayStation_Batch on List<AMapRailwayStation?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_adcode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_adcode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_time_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_time_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_wait_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_wait_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<bool?>> get_isStart_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_isStart_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> get_isEnd_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRailwayStation::get_isEnd_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_adcode_batch(List<String> adcode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_adcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "adcode": adcode[__i__]}]);
}
Future<void> set_time_batch(List<String> time) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_time_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "time": time[__i__]}]);
}
Future<void> set_wait_batch(List<int> wait) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_wait_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "wait": wait[__i__]}]);
}
Future<void> set_isStart_batch(List<bool> isStart) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_isStart_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "isStart": isStart[__i__]}]);
}
Future<void> set_isEnd_batch(List<bool> isEnd) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRailwayStation::set_isEnd_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "isEnd": isEnd[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,201 @@
// 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_search_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 AMapReGeocode extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapReGeocode';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapReGeocode> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapReGeocode',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapReGeocode>(__result__)!;
}
static Future<List<AMapReGeocode>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapReGeocode',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapReGeocode>(it))
.where((element) => element !=null)
.cast<AMapReGeocode>()
.toList() ?? <AMapReGeocode>[];
}
//endregion
//region getters
Future<String?> get_formattedAddress() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_formattedAddress", {'__this__': this});
return __result__;
}
Future<AMapAddressComponent?> get_addressComponent() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_addressComponent", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapAddressComponent>(__result__);
}
Future<List<AMapRoad>?> get_roads() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_roads", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRoad>(it)).where((e) => e != null).cast<AMapRoad>().toList();
}
Future<List<AMapRoadInter>?> get_roadinters() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_roadinters", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRoadInter>(it)).where((e) => e != null).cast<AMapRoadInter>().toList();
}
Future<List<AMapPOI>?> get_pois() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_pois", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPOI>(it)).where((e) => e != null).cast<AMapPOI>().toList();
}
Future<List<AMapAOI>?> get_aois() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_aois", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapAOI>(it)).where((e) => e != null).cast<AMapAOI>().toList();
}
//endregion
//region setters
Future<void> set_formattedAddress(String formattedAddress) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_formattedAddress', <String, dynamic>{'__this__': this, "formattedAddress": formattedAddress});
}
Future<void> set_addressComponent(AMapAddressComponent addressComponent) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_addressComponent', <String, dynamic>{'__this__': this, "addressComponent": addressComponent});
}
Future<void> set_roads(List<AMapRoad> roads) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_roads', <String, dynamic>{'__this__': this, "roads": roads});
}
Future<void> set_roadinters(List<AMapRoadInter> roadinters) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_roadinters', <String, dynamic>{'__this__': this, "roadinters": roadinters});
}
Future<void> set_pois(List<AMapPOI> pois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_pois', <String, dynamic>{'__this__': this, "pois": pois});
}
Future<void> set_aois(List<AMapAOI> aois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_aois', <String, dynamic>{'__this__': this, "aois": aois});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapReGeocode{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapReGeocode_Batch on List<AMapReGeocode?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_formattedAddress_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_formattedAddress_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapAddressComponent?>> get_addressComponent_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_addressComponent_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapAddressComponent>(__result__)).cast<AMapAddressComponent?>().toList();
}
Future<List<List<AMapRoad>?>> get_roads_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_roads_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRoad>(it)).where((e) => e != null).cast<AMapRoad>().toList()).cast<List<AMapRoad>?>().toList();
}
Future<List<List<AMapRoadInter>?>> get_roadinters_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_roadinters_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRoadInter>(it)).where((e) => e != null).cast<AMapRoadInter>().toList()).cast<List<AMapRoadInter>?>().toList();
}
Future<List<List<AMapPOI>?>> get_pois_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_pois_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPOI>(it)).where((e) => e != null).cast<AMapPOI>().toList()).cast<List<AMapPOI>?>().toList();
}
Future<List<List<AMapAOI>?>> get_aois_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocode::get_aois_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapAOI>(it)).where((e) => e != null).cast<AMapAOI>().toList()).cast<List<AMapAOI>?>().toList();
}
//endregion
//region setters
Future<void> set_formattedAddress_batch(List<String> formattedAddress) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_formattedAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "formattedAddress": formattedAddress[__i__]}]);
}
Future<void> set_addressComponent_batch(List<AMapAddressComponent> addressComponent) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_addressComponent_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "addressComponent": addressComponent[__i__]}]);
}
Future<void> set_roads_batch(List<List<AMapRoad>> roads) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_roads_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "roads": roads[__i__]}]);
}
Future<void> set_roadinters_batch(List<List<AMapRoadInter>> roadinters) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_roadinters_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "roadinters": roadinters[__i__]}]);
}
Future<void> set_pois_batch(List<List<AMapPOI>> pois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_pois_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pois": pois[__i__]}]);
}
Future<void> set_aois_batch(List<List<AMapAOI>> aois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocode::set_aois_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "aois": aois[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapReGeocodeSearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapReGeocodeSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapReGeocodeSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapReGeocodeSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapReGeocodeSearchRequest>(__result__)!;
}
static Future<List<AMapReGeocodeSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapReGeocodeSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapReGeocodeSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapReGeocodeSearchRequest>()
.toList() ?? <AMapReGeocodeSearchRequest>[];
}
//endregion
//region getters
Future<bool?> get_requireExtension() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_requireExtension", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<int?> get_radius() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_radius", {'__this__': this});
return __result__;
}
Future<String?> get_poitype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_poitype", {'__this__': this});
return __result__;
}
Future<String?> get_mode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_mode", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_requireExtension(bool requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_requireExtension', <String, dynamic>{'__this__': this, "requireExtension": requireExtension});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_radius(int radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_radius', <String, dynamic>{'__this__': this, "radius": radius});
}
Future<void> set_poitype(String poitype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_poitype', <String, dynamic>{'__this__': this, "poitype": poitype});
}
Future<void> set_mode(String mode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_mode', <String, dynamic>{'__this__': this, "mode": mode});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapReGeocodeSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapReGeocodeSearchRequest_Batch on List<AMapReGeocodeSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<bool?>> get_requireExtension_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_requireExtension_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<int?>> get_radius_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_radius_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_poitype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_poitype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_mode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchRequest::get_mode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_requireExtension_batch(List<bool> requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_requireExtension_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireExtension": requireExtension[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_radius_batch(List<int> radius) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_radius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "radius": radius[__i__]}]);
}
Future<void> set_poitype_batch(List<String> poitype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_poitype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "poitype": poitype[__i__]}]);
}
Future<void> set_mode_batch(List<String> mode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchRequest::set_mode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "mode": mode[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,101 @@
// 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_search_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 AMapReGeocodeSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapReGeocodeSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapReGeocodeSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapReGeocodeSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapReGeocodeSearchResponse>(__result__)!;
}
static Future<List<AMapReGeocodeSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapReGeocodeSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapReGeocodeSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapReGeocodeSearchResponse>()
.toList() ?? <AMapReGeocodeSearchResponse>[];
}
//endregion
//region getters
Future<AMapReGeocode?> get_regeocode() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchResponse::get_regeocode", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapReGeocode>(__result__);
}
//endregion
//region setters
Future<void> set_regeocode(AMapReGeocode regeocode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchResponse::set_regeocode', <String, dynamic>{'__this__': this, "regeocode": regeocode});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapReGeocodeSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapReGeocodeSearchResponse_Batch on List<AMapReGeocodeSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapReGeocode?>> get_regeocode_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapReGeocodeSearchResponse::get_regeocode_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapReGeocode>(__result__)).cast<AMapReGeocode?>().toList();
}
//endregion
//region setters
Future<void> set_regeocode_batch(List<AMapReGeocode> regeocode) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapReGeocodeSearchResponse::set_regeocode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "regeocode": regeocode[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapRidingRouteSearchRequest extends AMapRouteSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRidingRouteSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRidingRouteSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRidingRouteSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRidingRouteSearchRequest>(__result__)!;
}
static Future<List<AMapRidingRouteSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRidingRouteSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRidingRouteSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapRidingRouteSearchRequest>()
.toList() ?? <AMapRidingRouteSearchRequest>[];
}
//endregion
//region getters
Future<int?> get_type() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRidingRouteSearchRequest::get_type", {'__this__': this});
return __result__;
}
Future<bool?> get_requireExtension() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRidingRouteSearchRequest::get_requireExtension", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_type(int type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRidingRouteSearchRequest::set_type', <String, dynamic>{'__this__': this, "type": type});
}
Future<void> set_requireExtension(bool requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRidingRouteSearchRequest::set_requireExtension', <String, dynamic>{'__this__': this, "requireExtension": requireExtension});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRidingRouteSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRidingRouteSearchRequest_Batch on List<AMapRidingRouteSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_type_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRidingRouteSearchRequest::get_type_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<bool?>> get_requireExtension_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRidingRouteSearchRequest::get_requireExtension_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
//region setters
Future<void> set_type_batch(List<int> type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRidingRouteSearchRequest::set_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "type": type[__i__]}]);
}
Future<void> set_requireExtension_batch(List<bool> requireExtension) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRidingRouteSearchRequest::set_requireExtension_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "requireExtension": requireExtension[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,85 @@
// 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_search_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 AMapRidingRouteSearchResponse extends AMapRouteSearchResponse with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRidingRouteSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRidingRouteSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRidingRouteSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRidingRouteSearchResponse>(__result__)!;
}
static Future<List<AMapRidingRouteSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRidingRouteSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRidingRouteSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapRidingRouteSearchResponse>()
.toList() ?? <AMapRidingRouteSearchResponse>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRidingRouteSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRidingRouteSearchResponse_Batch on List<AMapRidingRouteSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
}

181
lib/src/ios/AMapRoad.g.dart Normal file
View File

@ -0,0 +1,181 @@
// 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_search_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 AMapRoad extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRoad';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRoad> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRoad',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRoad>(__result__)!;
}
static Future<List<AMapRoad>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRoad',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRoad>(it))
.where((element) => element !=null)
.cast<AMapRoad>()
.toList() ?? <AMapRoad>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_name", {'__this__': this});
return __result__;
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_distance", {'__this__': this});
return __result__;
}
Future<String?> get_direction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_direction", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_direction(String direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_direction', <String, dynamic>{'__this__': this, "direction": direction});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_location', <String, dynamic>{'__this__': this, "location": location});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRoad{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRoad_Batch on List<AMapRoad?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_direction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_direction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoad::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_direction_batch(List<String> direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_direction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "direction": direction[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoad::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,221 @@
// 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_search_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 AMapRoadInter extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRoadInter';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRoadInter> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRoadInter',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRoadInter>(__result__)!;
}
static Future<List<AMapRoadInter>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRoadInter',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRoadInter>(it))
.where((element) => element !=null)
.cast<AMapRoadInter>()
.toList() ?? <AMapRoadInter>[];
}
//endregion
//region getters
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_distance", {'__this__': this});
return __result__;
}
Future<String?> get_direction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_direction", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_firstId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_firstId", {'__this__': this});
return __result__;
}
Future<String?> get_firstName() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_firstName", {'__this__': this});
return __result__;
}
Future<String?> get_secondId() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_secondId", {'__this__': this});
return __result__;
}
Future<String?> get_secondName() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_secondName", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_direction(String direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_direction', <String, dynamic>{'__this__': this, "direction": direction});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_firstId(String firstId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_firstId', <String, dynamic>{'__this__': this, "firstId": firstId});
}
Future<void> set_firstName(String firstName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_firstName', <String, dynamic>{'__this__': this, "firstName": firstName});
}
Future<void> set_secondId(String secondId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_secondId', <String, dynamic>{'__this__': this, "secondId": secondId});
}
Future<void> set_secondName(String secondName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_secondName', <String, dynamic>{'__this__': this, "secondName": secondName});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRoadInter{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRoadInter_Batch on List<AMapRoadInter?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_direction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_direction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_firstId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_firstId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_firstName_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_firstName_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_secondId_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_secondId_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_secondName_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoadInter::get_secondName_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_direction_batch(List<String> direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_direction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "direction": direction[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_firstId_batch(List<String> firstId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_firstId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "firstId": firstId[__i__]}]);
}
Future<void> set_firstName_batch(List<String> firstName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_firstName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "firstName": firstName[__i__]}]);
}
Future<void> set_secondId_batch(List<String> secondId) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_secondId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "secondId": secondId[__i__]}]);
}
Future<void> set_secondName_batch(List<String> secondName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoadInter::set_secondName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "secondName": secondName[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapRoute extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRoute';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRoute> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRoute',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRoute>(__result__)!;
}
static Future<List<AMapRoute>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRoute',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRoute>(it))
.where((element) => element !=null)
.cast<AMapRoute>()
.toList() ?? <AMapRoute>[];
}
//endregion
//region getters
Future<AMapGeoPoint?> get_origin() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_origin", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapGeoPoint?> get_destination() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_destination", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<double?> get_taxiCost() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_taxiCost", {'__this__': this});
return __result__;
}
Future<List<AMapPath>?> get_paths() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_paths", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPath>(it)).where((e) => e != null).cast<AMapPath>().toList();
}
Future<List<AMapTransit>?> get_transits() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_transits", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTransit>(it)).where((e) => e != null).cast<AMapTransit>().toList();
}
//endregion
//region setters
Future<void> set_origin(AMapGeoPoint origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_origin', <String, dynamic>{'__this__': this, "origin": origin});
}
Future<void> set_destination(AMapGeoPoint destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_destination', <String, dynamic>{'__this__': this, "destination": destination});
}
Future<void> set_taxiCost(double taxiCost) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_taxiCost', <String, dynamic>{'__this__': this, "taxiCost": taxiCost});
}
Future<void> set_paths(List<AMapPath> paths) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_paths', <String, dynamic>{'__this__': this, "paths": paths});
}
Future<void> set_transits(List<AMapTransit> transits) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_transits', <String, dynamic>{'__this__': this, "transits": transits});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRoute{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRoute_Batch on List<AMapRoute?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPoint?>> get_origin_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_origin_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapGeoPoint?>> get_destination_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_destination_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<double?>> get_taxiCost_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_taxiCost_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<List<AMapPath>?>> get_paths_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_paths_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapPath>(it)).where((e) => e != null).cast<AMapPath>().toList()).cast<List<AMapPath>?>().toList();
}
Future<List<List<AMapTransit>?>> get_transits_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoute::get_transits_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTransit>(it)).where((e) => e != null).cast<AMapTransit>().toList()).cast<List<AMapTransit>?>().toList();
}
//endregion
//region setters
Future<void> set_origin_batch(List<AMapGeoPoint> origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_origin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origin": origin[__i__]}]);
}
Future<void> set_destination_batch(List<AMapGeoPoint> destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_destination_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destination": destination[__i__]}]);
}
Future<void> set_taxiCost_batch(List<double> taxiCost) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_taxiCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "taxiCost": taxiCost[__i__]}]);
}
Future<void> set_paths_batch(List<List<AMapPath>> paths) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_paths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "paths": paths[__i__]}]);
}
Future<void> set_transits_batch(List<List<AMapTransit>> transits) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoute::set_transits_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "transits": transits[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapRoutePOI extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRoutePOI';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRoutePOI> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRoutePOI',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRoutePOI>(__result__)!;
}
static Future<List<AMapRoutePOI>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRoutePOI',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRoutePOI>(it))
.where((element) => element !=null)
.cast<AMapRoutePOI>()
.toList() ?? <AMapRoutePOI>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_name", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_distance", {'__this__': this});
return __result__;
}
Future<int?> get_duration() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_duration", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_duration(int duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRoutePOI{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRoutePOI_Batch on List<AMapRoutePOI?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_duration_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOI::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_duration_batch(List<int> duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOI::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,221 @@
// 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_search_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 AMapRoutePOISearchRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRoutePOISearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRoutePOISearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRoutePOISearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRoutePOISearchRequest>(__result__)!;
}
static Future<List<AMapRoutePOISearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRoutePOISearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRoutePOISearchRequest>(it))
.where((element) => element !=null)
.cast<AMapRoutePOISearchRequest>()
.toList() ?? <AMapRoutePOISearchRequest>[];
}
//endregion
//region getters
Future<AMapGeoPoint?> get_origin() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_origin", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapGeoPoint?> get_destination() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_destination", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapRoutePOISearchType?> get_searchType() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_searchType", {'__this__': this});
return (__result__ as int).toAMapRoutePOISearchType();
}
Future<int?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_strategy", {'__this__': this});
return __result__;
}
Future<int?> get_range() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_range", {'__this__': this});
return __result__;
}
Future<String?> get_polylineStr() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_polylineStr", {'__this__': this});
return __result__;
}
Future<List<AMapGeoPoint>?> get_polyline() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_polyline", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList();
}
//endregion
//region setters
Future<void> set_origin(AMapGeoPoint origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_origin', <String, dynamic>{'__this__': this, "origin": origin});
}
Future<void> set_destination(AMapGeoPoint destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_destination', <String, dynamic>{'__this__': this, "destination": destination});
}
Future<void> set_searchType(AMapRoutePOISearchType searchType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_searchType', <String, dynamic>{'__this__': this, "searchType": searchType.toValue()});
}
Future<void> set_strategy(int strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_range(int range) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_range', <String, dynamic>{'__this__': this, "range": range});
}
Future<void> set_polylineStr(String polylineStr) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_polylineStr', <String, dynamic>{'__this__': this, "polylineStr": polylineStr});
}
Future<void> set_polyline(List<AMapGeoPoint> polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_polyline', <String, dynamic>{'__this__': this, "polyline": polyline});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRoutePOISearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRoutePOISearchRequest_Batch on List<AMapRoutePOISearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPoint?>> get_origin_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_origin_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapGeoPoint?>> get_destination_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_destination_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapRoutePOISearchType?>> get_searchType_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_searchType_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as int).toAMapRoutePOISearchType()).cast<AMapRoutePOISearchType?>().toList();
}
Future<List<int?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_range_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_range_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_polylineStr_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_polylineStr_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<List<AMapGeoPoint>?>> get_polyline_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchRequest::get_polyline_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(it)).where((e) => e != null).cast<AMapGeoPoint>().toList()).cast<List<AMapGeoPoint>?>().toList();
}
//endregion
//region setters
Future<void> set_origin_batch(List<AMapGeoPoint> origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_origin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origin": origin[__i__]}]);
}
Future<void> set_destination_batch(List<AMapGeoPoint> destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_destination_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destination": destination[__i__]}]);
}
Future<void> set_searchType_batch(List<AMapRoutePOISearchType> searchType) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_searchType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "searchType": searchType[__i__].toValue()}]);
}
Future<void> set_strategy_batch(List<int> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_range_batch(List<int> range) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_range_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "range": range[__i__]}]);
}
Future<void> set_polylineStr_batch(List<String> polylineStr) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_polylineStr_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polylineStr": polylineStr[__i__]}]);
}
Future<void> set_polyline_batch(List<List<AMapGeoPoint>> polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchRequest::set_polyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polyline": polyline[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapRoutePOISearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRoutePOISearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRoutePOISearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRoutePOISearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRoutePOISearchResponse>(__result__)!;
}
static Future<List<AMapRoutePOISearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRoutePOISearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRoutePOISearchResponse>(it))
.where((element) => element !=null)
.cast<AMapRoutePOISearchResponse>()
.toList() ?? <AMapRoutePOISearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<List<AMapRoutePOI>?> get_pois() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchResponse::get_pois", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRoutePOI>(it)).where((e) => e != null).cast<AMapRoutePOI>().toList();
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_pois(List<AMapRoutePOI> pois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchResponse::set_pois', <String, dynamic>{'__this__': this, "pois": pois});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRoutePOISearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRoutePOISearchResponse_Batch on List<AMapRoutePOISearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapRoutePOI>?>> get_pois_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRoutePOISearchResponse::get_pois_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapRoutePOI>(it)).where((e) => e != null).cast<AMapRoutePOI>().toList()).cast<List<AMapRoutePOI>?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_pois_batch(List<List<AMapRoutePOI>> pois) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRoutePOISearchResponse::set_pois_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pois": pois[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,41 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapRoutePOISearchType {
AMapRoutePOISearchTypeGasStation /* 0 */,
AMapRoutePOISearchTypeMaintenanceStation /* 1 */,
AMapRoutePOISearchTypeATM /* 2 */,
AMapRoutePOISearchTypeToilet /* 3 */,
AMapRoutePOISearchTypeGasAirStation /* 4 */,
AMapRoutePOISearchTypeParkStation /* 5 */
}
extension AMapRoutePOISearchTypeToX on AMapRoutePOISearchType {
int toValue() {
switch (this) {
case AMapRoutePOISearchType.AMapRoutePOISearchTypeGasStation: return 0;
case AMapRoutePOISearchType.AMapRoutePOISearchTypeMaintenanceStation: return 1;
case AMapRoutePOISearchType.AMapRoutePOISearchTypeATM: return 2;
case AMapRoutePOISearchType.AMapRoutePOISearchTypeToilet: return 3;
case AMapRoutePOISearchType.AMapRoutePOISearchTypeGasAirStation: return 4;
case AMapRoutePOISearchType.AMapRoutePOISearchTypeParkStation: return 5;
default: return 0;
}
}
}
extension AMapRoutePOISearchTypeFromX on int {
AMapRoutePOISearchType toAMapRoutePOISearchType() {
switch (this) {
case 0: return AMapRoutePOISearchType.AMapRoutePOISearchTypeGasStation;
case 1: return AMapRoutePOISearchType.AMapRoutePOISearchTypeMaintenanceStation;
case 2: return AMapRoutePOISearchType.AMapRoutePOISearchTypeATM;
case 3: return AMapRoutePOISearchType.AMapRoutePOISearchTypeToilet;
case 4: return AMapRoutePOISearchType.AMapRoutePOISearchTypeGasAirStation;
case 5: return AMapRoutePOISearchType.AMapRoutePOISearchTypeParkStation;
default: return AMapRoutePOISearchType.values[this + 0];
}
}
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapRouteSearchBaseRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRouteSearchBaseRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRouteSearchBaseRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRouteSearchBaseRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRouteSearchBaseRequest>(__result__)!;
}
static Future<List<AMapRouteSearchBaseRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRouteSearchBaseRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRouteSearchBaseRequest>(it))
.where((element) => element !=null)
.cast<AMapRouteSearchBaseRequest>()
.toList() ?? <AMapRouteSearchBaseRequest>[];
}
//endregion
//region getters
Future<AMapGeoPoint?> get_origin() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchBaseRequest::get_origin", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapGeoPoint?> get_destination() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchBaseRequest::get_destination", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
//endregion
//region setters
Future<void> set_origin(AMapGeoPoint origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchBaseRequest::set_origin', <String, dynamic>{'__this__': this, "origin": origin});
}
Future<void> set_destination(AMapGeoPoint destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchBaseRequest::set_destination', <String, dynamic>{'__this__': this, "destination": destination});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRouteSearchBaseRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRouteSearchBaseRequest_Batch on List<AMapRouteSearchBaseRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPoint?>> get_origin_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchBaseRequest::get_origin_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapGeoPoint?>> get_destination_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchBaseRequest::get_destination_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
//endregion
//region setters
Future<void> set_origin_batch(List<AMapGeoPoint> origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchBaseRequest::set_origin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origin": origin[__i__]}]);
}
Future<void> set_destination_batch(List<AMapGeoPoint> destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchBaseRequest::set_destination_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destination": destination[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapRouteSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRouteSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRouteSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRouteSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRouteSearchResponse>(__result__)!;
}
static Future<List<AMapRouteSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRouteSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRouteSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapRouteSearchResponse>()
.toList() ?? <AMapRouteSearchResponse>[];
}
//endregion
//region getters
Future<int?> get_count() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchResponse::get_count", {'__this__': this});
return __result__;
}
Future<AMapRoute?> get_route() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchResponse::get_route", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapRoute>(__result__);
}
//endregion
//region setters
Future<void> set_count(int count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchResponse::set_count', <String, dynamic>{'__this__': this, "count": count});
}
Future<void> set_route(AMapRoute route) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchResponse::set_route', <String, dynamic>{'__this__': this, "route": route});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRouteSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRouteSearchResponse_Batch on List<AMapRouteSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_count_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchResponse::get_count_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapRoute?>> get_route_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteSearchResponse::get_route_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapRoute>(__result__)).cast<AMapRoute?>().toList();
}
//endregion
//region setters
Future<void> set_count_batch(List<int> count) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchResponse::set_count_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "count": count[__i__]}]);
}
Future<void> set_route_batch(List<AMapRoute> route) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteSearchResponse::set_route_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "route": route[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,201 @@
// 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_search_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 AMapRouteShareSearchRequest extends AMapShareSearchBaseRequest with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapRouteShareSearchRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapRouteShareSearchRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapRouteShareSearchRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapRouteShareSearchRequest>(__result__)!;
}
static Future<List<AMapRouteShareSearchRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapRouteShareSearchRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapRouteShareSearchRequest>(it))
.where((element) => element !=null)
.cast<AMapRouteShareSearchRequest>()
.toList() ?? <AMapRouteShareSearchRequest>[];
}
//endregion
//region getters
Future<int?> get_strategy() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_strategy", {'__this__': this});
return __result__;
}
Future<int?> get_type() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_type", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_startCoordinate() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_startCoordinate", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapGeoPoint?> get_destinationCoordinate() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_destinationCoordinate", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_startName() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_startName", {'__this__': this});
return __result__;
}
Future<String?> get_destinationName() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_destinationName", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_strategy(int strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_strategy', <String, dynamic>{'__this__': this, "strategy": strategy});
}
Future<void> set_type(int type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_type', <String, dynamic>{'__this__': this, "type": type});
}
Future<void> set_startCoordinate(AMapGeoPoint startCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_startCoordinate', <String, dynamic>{'__this__': this, "startCoordinate": startCoordinate});
}
Future<void> set_destinationCoordinate(AMapGeoPoint destinationCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_destinationCoordinate', <String, dynamic>{'__this__': this, "destinationCoordinate": destinationCoordinate});
}
Future<void> set_startName(String startName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_startName', <String, dynamic>{'__this__': this, "startName": startName});
}
Future<void> set_destinationName(String destinationName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_destinationName', <String, dynamic>{'__this__': this, "destinationName": destinationName});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapRouteShareSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapRouteShareSearchRequest_Batch on List<AMapRouteShareSearchRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_strategy_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_strategy_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_type_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_type_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<AMapGeoPoint?>> get_startCoordinate_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_startCoordinate_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapGeoPoint?>> get_destinationCoordinate_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_destinationCoordinate_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_startName_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_startName_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_destinationName_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapRouteShareSearchRequest::get_destinationName_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_strategy_batch(List<int> strategy) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_strategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "strategy": strategy[__i__]}]);
}
Future<void> set_type_batch(List<int> type) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_type_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "type": type[__i__]}]);
}
Future<void> set_startCoordinate_batch(List<AMapGeoPoint> startCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_startCoordinate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startCoordinate": startCoordinate[__i__]}]);
}
Future<void> set_destinationCoordinate_batch(List<AMapGeoPoint> destinationCoordinate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_destinationCoordinate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationCoordinate": destinationCoordinate[__i__]}]);
}
Future<void> set_startName_batch(List<String> startName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_startName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "startName": startName[__i__]}]);
}
Future<void> set_destinationName_batch(List<String> destinationName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapRouteShareSearchRequest::set_destinationName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destinationName": destinationName[__i__]}]);
}
//endregion
//region methods
//endregion
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,29 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapSearchCoordinateType {
AMapSearchCoordinateTypeGPS /* 1 */,
AMapSearchCoordinateTypeAMap /* 2 */
}
extension AMapSearchCoordinateTypeToX on AMapSearchCoordinateType {
int toValue() {
switch (this) {
case AMapSearchCoordinateType.AMapSearchCoordinateTypeGPS: return 1;
case AMapSearchCoordinateType.AMapSearchCoordinateTypeAMap: return 2;
default: return 0;
}
}
}
extension AMapSearchCoordinateTypeFromX on int {
AMapSearchCoordinateType toAMapSearchCoordinateType() {
switch (this) {
case 1: return AMapSearchCoordinateType.AMapSearchCoordinateTypeGPS;
case 2: return AMapSearchCoordinateType.AMapSearchCoordinateTypeAMap;
default: return AMapSearchCoordinateType.values[this + 1];
}
}
}

View File

@ -0,0 +1,232 @@
// 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_search_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 _AMapSearchDelegate_SUB extends NSObject with AMapSearchDelegate {}
mixin AMapSearchDelegate on NSObject {
static AMapSearchDelegate subInstance() => _AMapSearchDelegate_SUB();
static Future<AMapSearchDelegate> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchDelegate::createAnonymous__');
final __object__ = AmapSearchFluttifyIOSAs<AMapSearchDelegate>(__result__)!;
// handle callback
MethodChannel('AMapSearchDelegate::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'AMapSearchRequest_didFailWithError':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.AMapSearchRequest_didFailWithError?.call([\'request\':${args['request']}, \'error\':${args['error']}])');
}
// handle the native call
__object__.AMapSearchRequest_didFailWithError?.call(AmapSearchFluttifyIOSAs<dynamic>(args['request']), AmapSearchFluttifyIOSAs<NSError>(args['error']));
break;
case 'onPOISearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onPOISearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onPOISearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapPOISearchBaseRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapPOISearchResponse>(args['response']));
break;
case 'onRoutePOISearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onRoutePOISearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onRoutePOISearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapRoutePOISearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapRoutePOISearchResponse>(args['response']));
break;
case 'onGeocodeSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onGeocodeSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onGeocodeSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapGeocodeSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapGeocodeSearchResponse>(args['response']));
break;
case 'onReGeocodeSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onReGeocodeSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onReGeocodeSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapReGeocodeSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapReGeocodeSearchResponse>(args['response']));
break;
case 'onInputTipsSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onInputTipsSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onInputTipsSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapInputTipsSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapInputTipsSearchResponse>(args['response']));
break;
case 'onBusStopSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onBusStopSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onBusStopSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapBusStopSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapBusStopSearchResponse>(args['response']));
break;
case 'onBusLineSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onBusLineSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onBusLineSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapBusLineBaseSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapBusLineSearchResponse>(args['response']));
break;
case 'onDistrictSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onDistrictSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onDistrictSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapDistrictSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapDistrictSearchResponse>(args['response']));
break;
case 'onRouteSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onRouteSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onRouteSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapRouteSearchBaseRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapRouteSearchResponse>(args['response']));
break;
case 'onFutureRouteSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onFutureRouteSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onFutureRouteSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapRouteSearchBaseRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapFutureRouteSearchResponse>(args['response']));
break;
case 'onDistanceSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onDistanceSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onDistanceSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapDistanceSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapDistanceSearchResponse>(args['response']));
break;
case 'onWeatherSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onWeatherSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onWeatherSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapWeatherSearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapWeatherSearchResponse>(args['response']));
break;
case 'onNearbySearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onNearbySearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onNearbySearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapNearbySearchRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapNearbySearchResponse>(args['response']));
break;
case 'onCloudSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onCloudSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onCloudSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapCloudSearchBaseRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapCloudPOISearchResponse>(args['response']));
break;
case 'onShareSearchDone_response':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onShareSearchDone_response?.call([\'request\':${args['request']}, \'response\':${args['response']}])');
}
// handle the native call
__object__.onShareSearchDone_response?.call(AmapSearchFluttifyIOSAs<AMapShareSearchBaseRequest>(args['request']), AmapSearchFluttifyIOSAs<AMapShareSearchResponse>(args['response']));
break;
default:
throw MissingPluginException('方法${methodCall.method}未实现');
break;
}
} catch (e) {
debugPrint(e.toString());
rethrow;
}
});
return __object__;
}
@override
final String tag__ = 'amap_search_fluttify';
Future<void> Function(dynamic request, NSError? error)? AMapSearchRequest_didFailWithError;
Future<void> Function(AMapPOISearchBaseRequest? request, AMapPOISearchResponse? response)? onPOISearchDone_response;
Future<void> Function(AMapRoutePOISearchRequest? request, AMapRoutePOISearchResponse? response)? onRoutePOISearchDone_response;
Future<void> Function(AMapGeocodeSearchRequest? request, AMapGeocodeSearchResponse? response)? onGeocodeSearchDone_response;
Future<void> Function(AMapReGeocodeSearchRequest? request, AMapReGeocodeSearchResponse? response)? onReGeocodeSearchDone_response;
Future<void> Function(AMapInputTipsSearchRequest? request, AMapInputTipsSearchResponse? response)? onInputTipsSearchDone_response;
Future<void> Function(AMapBusStopSearchRequest? request, AMapBusStopSearchResponse? response)? onBusStopSearchDone_response;
Future<void> Function(AMapBusLineBaseSearchRequest? request, AMapBusLineSearchResponse? response)? onBusLineSearchDone_response;
Future<void> Function(AMapDistrictSearchRequest? request, AMapDistrictSearchResponse? response)? onDistrictSearchDone_response;
Future<void> Function(AMapRouteSearchBaseRequest? request, AMapRouteSearchResponse? response)? onRouteSearchDone_response;
Future<void> Function(AMapRouteSearchBaseRequest? request, AMapFutureRouteSearchResponse? response)? onFutureRouteSearchDone_response;
Future<void> Function(AMapDistanceSearchRequest? request, AMapDistanceSearchResponse? response)? onDistanceSearchDone_response;
Future<void> Function(AMapWeatherSearchRequest? request, AMapWeatherSearchResponse? response)? onWeatherSearchDone_response;
Future<void> Function(AMapNearbySearchRequest? request, AMapNearbySearchResponse? response)? onNearbySearchDone_response;
Future<void> Function(AMapCloudSearchBaseRequest? request, AMapCloudPOISearchResponse? response)? onCloudSearchDone_response;
Future<void> Function(AMapShareSearchBaseRequest? request, AMapShareSearchResponse? response)? onShareSearchDone_response;
}

View File

@ -0,0 +1,111 @@
// 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_search_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 AMapSearchError extends NSObject {
//region constants
static const String name__ = 'AMapSearchError';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapSearchError> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapSearchError',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapSearchError>(__result__)!;
}
static Future<List<AMapSearchError>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapSearchError',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapSearchError>(it))
.where((element) => element !=null)
.cast<AMapSearchError>()
.toList() ?? <AMapSearchError>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<String?> errorInfoWithCode(AMapSearchErrorCode errorCode) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapSearchError::errorInfoWithCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchError::errorInfoWithCode', {"errorCode": errorCode.toValue()});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'AMapSearchError{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapSearchError_Batch on List<AMapSearchError?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<List<String?>> errorInfoWithCode_batch(List<AMapSearchErrorCode> errorCode) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchError::errorInfoWithCode_batch', [for (int __i__ = 0; __i__ < errorCode.length; __i__++) {"errorCode": errorCode[__i__].toValue()}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
}

View File

@ -0,0 +1,164 @@
// 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.
//////////////////////////////////////////////////////////
enum AMapSearchErrorCode {
AMapSearchErrorOK /* 1000 */,
AMapSearchErrorInvalidSignature /* 1001 */,
AMapSearchErrorInvalidUserKey /* 1002 */,
AMapSearchErrorServiceNotAvailable /* 1003 */,
AMapSearchErrorDailyQueryOverLimit /* 1004 */,
AMapSearchErrorTooFrequently /* 1005 */,
AMapSearchErrorInvalidUserIP /* 1006 */,
AMapSearchErrorInvalidUserDomain /* 1007 */,
AMapSearchErrorInvalidUserSCode /* 1008 */,
AMapSearchErrorUserKeyNotMatch /* 1009 */,
AMapSearchErrorIPQueryOverLimit /* 1010 */,
AMapSearchErrorNotSupportHttps /* 1011 */,
AMapSearchErrorInsufficientPrivileges /* 1012 */,
AMapSearchErrorUserKeyRecycled /* 1013 */,
AMapSearchErrorInvalidResponse /* 1100 */,
AMapSearchErrorInvalidEngineData /* 1101 */,
AMapSearchErrorConnectTimeout /* 1102 */,
AMapSearchErrorReturnTimeout /* 1103 */,
AMapSearchErrorInvalidParams /* 1200 */,
AMapSearchErrorMissingRequiredParams /* 1201 */,
AMapSearchErrorIllegalRequest /* 1202 */,
AMapSearchErrorServiceUnknown /* 1203 */,
AMapSearchErrorClientUnknown /* 1800 */,
AMapSearchErrorInvalidProtocol /* 1801 */,
AMapSearchErrorTimeOut /* 1802 */,
AMapSearchErrorBadURL /* 1803 */,
AMapSearchErrorCannotFindHost /* 1804 */,
AMapSearchErrorCannotConnectToHost /* 1805 */,
AMapSearchErrorNotConnectedToInternet /* 1806 */,
AMapSearchErrorCancelled /* 1807 */,
AMapSearchErrorOverPassPointCount /* 1809 */,
AMapSearchErrorOverPassAreaMaxCount /* 1810 */,
AMapSearchErrorOverPassAreaMaxArea /* 1811 */,
AMapSearchErrorOverPassAreaPointCount /* 1812 */,
AMapSearchErrorOverPassKeyWordLenth /* 1813 */,
AMapSearchErrorTableIDNotExist /* 2000 */,
AMapSearchErrorIDNotExist /* 2001 */,
AMapSearchErrorServiceMaintenance /* 2002 */,
AMapSearchErrorEngineTableIDNotExist /* 2003 */,
AMapSearchErrorInvalidNearbyUserID /* 2100 */,
AMapSearchErrorNearbyKeyNotBind /* 2101 */,
AMapSearchErrorOutOfService /* 3000 */,
AMapSearchErrorNoRoadsNearby /* 3001 */,
AMapSearchErrorRouteFailed /* 3002 */,
AMapSearchErrorOverDirectionRange /* 3003 */,
AMapSearchErrorShareLicenseExpired /* 4000 */,
AMapSearchErrorShareFailed /* 4001 */
}
extension AMapSearchErrorCodeToX on AMapSearchErrorCode {
int toValue() {
switch (this) {
case AMapSearchErrorCode.AMapSearchErrorOK: return 1000;
case AMapSearchErrorCode.AMapSearchErrorInvalidSignature: return 1001;
case AMapSearchErrorCode.AMapSearchErrorInvalidUserKey: return 1002;
case AMapSearchErrorCode.AMapSearchErrorServiceNotAvailable: return 1003;
case AMapSearchErrorCode.AMapSearchErrorDailyQueryOverLimit: return 1004;
case AMapSearchErrorCode.AMapSearchErrorTooFrequently: return 1005;
case AMapSearchErrorCode.AMapSearchErrorInvalidUserIP: return 1006;
case AMapSearchErrorCode.AMapSearchErrorInvalidUserDomain: return 1007;
case AMapSearchErrorCode.AMapSearchErrorInvalidUserSCode: return 1008;
case AMapSearchErrorCode.AMapSearchErrorUserKeyNotMatch: return 1009;
case AMapSearchErrorCode.AMapSearchErrorIPQueryOverLimit: return 1010;
case AMapSearchErrorCode.AMapSearchErrorNotSupportHttps: return 1011;
case AMapSearchErrorCode.AMapSearchErrorInsufficientPrivileges: return 1012;
case AMapSearchErrorCode.AMapSearchErrorUserKeyRecycled: return 1013;
case AMapSearchErrorCode.AMapSearchErrorInvalidResponse: return 1100;
case AMapSearchErrorCode.AMapSearchErrorInvalidEngineData: return 1101;
case AMapSearchErrorCode.AMapSearchErrorConnectTimeout: return 1102;
case AMapSearchErrorCode.AMapSearchErrorReturnTimeout: return 1103;
case AMapSearchErrorCode.AMapSearchErrorInvalidParams: return 1200;
case AMapSearchErrorCode.AMapSearchErrorMissingRequiredParams: return 1201;
case AMapSearchErrorCode.AMapSearchErrorIllegalRequest: return 1202;
case AMapSearchErrorCode.AMapSearchErrorServiceUnknown: return 1203;
case AMapSearchErrorCode.AMapSearchErrorClientUnknown: return 1800;
case AMapSearchErrorCode.AMapSearchErrorInvalidProtocol: return 1801;
case AMapSearchErrorCode.AMapSearchErrorTimeOut: return 1802;
case AMapSearchErrorCode.AMapSearchErrorBadURL: return 1803;
case AMapSearchErrorCode.AMapSearchErrorCannotFindHost: return 1804;
case AMapSearchErrorCode.AMapSearchErrorCannotConnectToHost: return 1805;
case AMapSearchErrorCode.AMapSearchErrorNotConnectedToInternet: return 1806;
case AMapSearchErrorCode.AMapSearchErrorCancelled: return 1807;
case AMapSearchErrorCode.AMapSearchErrorOverPassPointCount: return 1809;
case AMapSearchErrorCode.AMapSearchErrorOverPassAreaMaxCount: return 1810;
case AMapSearchErrorCode.AMapSearchErrorOverPassAreaMaxArea: return 1811;
case AMapSearchErrorCode.AMapSearchErrorOverPassAreaPointCount: return 1812;
case AMapSearchErrorCode.AMapSearchErrorOverPassKeyWordLenth: return 1813;
case AMapSearchErrorCode.AMapSearchErrorTableIDNotExist: return 2000;
case AMapSearchErrorCode.AMapSearchErrorIDNotExist: return 2001;
case AMapSearchErrorCode.AMapSearchErrorServiceMaintenance: return 2002;
case AMapSearchErrorCode.AMapSearchErrorEngineTableIDNotExist: return 2003;
case AMapSearchErrorCode.AMapSearchErrorInvalidNearbyUserID: return 2100;
case AMapSearchErrorCode.AMapSearchErrorNearbyKeyNotBind: return 2101;
case AMapSearchErrorCode.AMapSearchErrorOutOfService: return 3000;
case AMapSearchErrorCode.AMapSearchErrorNoRoadsNearby: return 3001;
case AMapSearchErrorCode.AMapSearchErrorRouteFailed: return 3002;
case AMapSearchErrorCode.AMapSearchErrorOverDirectionRange: return 3003;
case AMapSearchErrorCode.AMapSearchErrorShareLicenseExpired: return 4000;
case AMapSearchErrorCode.AMapSearchErrorShareFailed: return 4001;
default: return 0;
}
}
}
extension AMapSearchErrorCodeFromX on int {
AMapSearchErrorCode toAMapSearchErrorCode() {
switch (this) {
case 1000: return AMapSearchErrorCode.AMapSearchErrorOK;
case 1001: return AMapSearchErrorCode.AMapSearchErrorInvalidSignature;
case 1002: return AMapSearchErrorCode.AMapSearchErrorInvalidUserKey;
case 1003: return AMapSearchErrorCode.AMapSearchErrorServiceNotAvailable;
case 1004: return AMapSearchErrorCode.AMapSearchErrorDailyQueryOverLimit;
case 1005: return AMapSearchErrorCode.AMapSearchErrorTooFrequently;
case 1006: return AMapSearchErrorCode.AMapSearchErrorInvalidUserIP;
case 1007: return AMapSearchErrorCode.AMapSearchErrorInvalidUserDomain;
case 1008: return AMapSearchErrorCode.AMapSearchErrorInvalidUserSCode;
case 1009: return AMapSearchErrorCode.AMapSearchErrorUserKeyNotMatch;
case 1010: return AMapSearchErrorCode.AMapSearchErrorIPQueryOverLimit;
case 1011: return AMapSearchErrorCode.AMapSearchErrorNotSupportHttps;
case 1012: return AMapSearchErrorCode.AMapSearchErrorInsufficientPrivileges;
case 1013: return AMapSearchErrorCode.AMapSearchErrorUserKeyRecycled;
case 1100: return AMapSearchErrorCode.AMapSearchErrorInvalidResponse;
case 1101: return AMapSearchErrorCode.AMapSearchErrorInvalidEngineData;
case 1102: return AMapSearchErrorCode.AMapSearchErrorConnectTimeout;
case 1103: return AMapSearchErrorCode.AMapSearchErrorReturnTimeout;
case 1200: return AMapSearchErrorCode.AMapSearchErrorInvalidParams;
case 1201: return AMapSearchErrorCode.AMapSearchErrorMissingRequiredParams;
case 1202: return AMapSearchErrorCode.AMapSearchErrorIllegalRequest;
case 1203: return AMapSearchErrorCode.AMapSearchErrorServiceUnknown;
case 1800: return AMapSearchErrorCode.AMapSearchErrorClientUnknown;
case 1801: return AMapSearchErrorCode.AMapSearchErrorInvalidProtocol;
case 1802: return AMapSearchErrorCode.AMapSearchErrorTimeOut;
case 1803: return AMapSearchErrorCode.AMapSearchErrorBadURL;
case 1804: return AMapSearchErrorCode.AMapSearchErrorCannotFindHost;
case 1805: return AMapSearchErrorCode.AMapSearchErrorCannotConnectToHost;
case 1806: return AMapSearchErrorCode.AMapSearchErrorNotConnectedToInternet;
case 1807: return AMapSearchErrorCode.AMapSearchErrorCancelled;
case 1809: return AMapSearchErrorCode.AMapSearchErrorOverPassPointCount;
case 1810: return AMapSearchErrorCode.AMapSearchErrorOverPassAreaMaxCount;
case 1811: return AMapSearchErrorCode.AMapSearchErrorOverPassAreaMaxArea;
case 1812: return AMapSearchErrorCode.AMapSearchErrorOverPassAreaPointCount;
case 1813: return AMapSearchErrorCode.AMapSearchErrorOverPassKeyWordLenth;
case 2000: return AMapSearchErrorCode.AMapSearchErrorTableIDNotExist;
case 2001: return AMapSearchErrorCode.AMapSearchErrorIDNotExist;
case 2002: return AMapSearchErrorCode.AMapSearchErrorServiceMaintenance;
case 2003: return AMapSearchErrorCode.AMapSearchErrorEngineTableIDNotExist;
case 2100: return AMapSearchErrorCode.AMapSearchErrorInvalidNearbyUserID;
case 2101: return AMapSearchErrorCode.AMapSearchErrorNearbyKeyNotBind;
case 3000: return AMapSearchErrorCode.AMapSearchErrorOutOfService;
case 3001: return AMapSearchErrorCode.AMapSearchErrorNoRoadsNearby;
case 3002: return AMapSearchErrorCode.AMapSearchErrorRouteFailed;
case 3003: return AMapSearchErrorCode.AMapSearchErrorOverDirectionRange;
case 4000: return AMapSearchErrorCode.AMapSearchErrorShareLicenseExpired;
case 4001: return AMapSearchErrorCode.AMapSearchErrorShareFailed;
default: return AMapSearchErrorCode.values[this + 1000];
}
}
}

View File

@ -0,0 +1,111 @@
// 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_search_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 AMapSearchObject extends NSObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapSearchObject';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapSearchObject> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapSearchObject',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapSearchObject>(__result__)!;
}
static Future<List<AMapSearchObject>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapSearchObject',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapSearchObject>(it))
.where((element) => element !=null)
.cast<AMapSearchObject>()
.toList() ?? <AMapSearchObject>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> formattedDescription() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: AMapSearchObject@$refId::formattedDescription([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchObject::formattedDescription', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'AMapSearchObject{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapSearchObject_Batch on List<AMapSearchObject?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> formattedDescription_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchObject::formattedDescription_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
}

View File

@ -0,0 +1,241 @@
// 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_search_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 AMapSegment extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapSegment';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapSegment> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapSegment',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapSegment>(__result__)!;
}
static Future<List<AMapSegment>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapSegment',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapSegment>(it))
.where((element) => element !=null)
.cast<AMapSegment>()
.toList() ?? <AMapSegment>[];
}
//endregion
//region getters
Future<AMapWalking?> get_walking() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_walking", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapWalking>(__result__);
}
Future<List<AMapBusLine>?> get_buslines() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_buslines", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it)).where((e) => e != null).cast<AMapBusLine>().toList();
}
Future<AMapTaxi?> get_taxi() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_taxi", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapTaxi>(__result__);
}
Future<AMapRailway?> get_railway() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_railway", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapRailway>(__result__);
}
Future<String?> get_enterName() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_enterName", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_enterLocation() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_enterLocation", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_exitName() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_exitName", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_exitLocation() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_exitLocation", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
//endregion
//region setters
Future<void> set_walking(AMapWalking walking) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_walking', <String, dynamic>{'__this__': this, "walking": walking});
}
Future<void> set_buslines(List<AMapBusLine> buslines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_buslines', <String, dynamic>{'__this__': this, "buslines": buslines});
}
Future<void> set_taxi(AMapTaxi taxi) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_taxi', <String, dynamic>{'__this__': this, "taxi": taxi});
}
Future<void> set_railway(AMapRailway railway) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_railway', <String, dynamic>{'__this__': this, "railway": railway});
}
Future<void> set_enterName(String enterName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_enterName', <String, dynamic>{'__this__': this, "enterName": enterName});
}
Future<void> set_enterLocation(AMapGeoPoint enterLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_enterLocation', <String, dynamic>{'__this__': this, "enterLocation": enterLocation});
}
Future<void> set_exitName(String exitName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_exitName', <String, dynamic>{'__this__': this, "exitName": exitName});
}
Future<void> set_exitLocation(AMapGeoPoint exitLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_exitLocation', <String, dynamic>{'__this__': this, "exitLocation": exitLocation});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapSegment{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapSegment_Batch on List<AMapSegment?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapWalking?>> get_walking_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_walking_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapWalking>(__result__)).cast<AMapWalking?>().toList();
}
Future<List<List<AMapBusLine>?>> get_buslines_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_buslines_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapBusLine>(it)).where((e) => e != null).cast<AMapBusLine>().toList()).cast<List<AMapBusLine>?>().toList();
}
Future<List<AMapTaxi?>> get_taxi_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_taxi_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapTaxi>(__result__)).cast<AMapTaxi?>().toList();
}
Future<List<AMapRailway?>> get_railway_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_railway_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapRailway>(__result__)).cast<AMapRailway?>().toList();
}
Future<List<String?>> get_enterName_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_enterName_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_enterLocation_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_enterLocation_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_exitName_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_exitName_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_exitLocation_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSegment::get_exitLocation_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
//endregion
//region setters
Future<void> set_walking_batch(List<AMapWalking> walking) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_walking_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "walking": walking[__i__]}]);
}
Future<void> set_buslines_batch(List<List<AMapBusLine>> buslines) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_buslines_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "buslines": buslines[__i__]}]);
}
Future<void> set_taxi_batch(List<AMapTaxi> taxi) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_taxi_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "taxi": taxi[__i__]}]);
}
Future<void> set_railway_batch(List<AMapRailway> railway) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_railway_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "railway": railway[__i__]}]);
}
Future<void> set_enterName_batch(List<String> enterName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_enterName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enterName": enterName[__i__]}]);
}
Future<void> set_enterLocation_batch(List<AMapGeoPoint> enterLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_enterLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enterLocation": enterLocation[__i__]}]);
}
Future<void> set_exitName_batch(List<String> exitName) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_exitName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "exitName": exitName[__i__]}]);
}
Future<void> set_exitLocation_batch(List<AMapGeoPoint> exitLocation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSegment::set_exitLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "exitLocation": exitLocation[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,85 @@
// 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_search_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 AMapShareSearchBaseRequest extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapShareSearchBaseRequest';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapShareSearchBaseRequest> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapShareSearchBaseRequest',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapShareSearchBaseRequest>(__result__)!;
}
static Future<List<AMapShareSearchBaseRequest>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapShareSearchBaseRequest',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapShareSearchBaseRequest>(it))
.where((element) => element !=null)
.cast<AMapShareSearchBaseRequest>()
.toList() ?? <AMapShareSearchBaseRequest>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapShareSearchBaseRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapShareSearchBaseRequest_Batch on List<AMapShareSearchBaseRequest?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,101 @@
// 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_search_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 AMapShareSearchResponse extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapShareSearchResponse';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapShareSearchResponse> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapShareSearchResponse',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapShareSearchResponse>(__result__)!;
}
static Future<List<AMapShareSearchResponse>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapShareSearchResponse',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapShareSearchResponse>(it))
.where((element) => element !=null)
.cast<AMapShareSearchResponse>()
.toList() ?? <AMapShareSearchResponse>[];
}
//endregion
//region getters
Future<String?> get_shareURL() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapShareSearchResponse::get_shareURL", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_shareURL(String shareURL) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapShareSearchResponse::set_shareURL', <String, dynamic>{'__this__': this, "shareURL": shareURL});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapShareSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapShareSearchResponse_Batch on List<AMapShareSearchResponse?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_shareURL_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapShareSearchResponse::get_shareURL_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_shareURL_batch(List<String> shareURL) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapShareSearchResponse::set_shareURL_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "shareURL": shareURL[__i__]}]);
}
//endregion
//region methods
//endregion
}

361
lib/src/ios/AMapStep.g.dart Normal file
View File

@ -0,0 +1,361 @@
// 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_search_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 AMapStep extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapStep';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapStep> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapStep',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapStep>(__result__)!;
}
static Future<List<AMapStep>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapStep',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapStep>(it))
.where((element) => element !=null)
.cast<AMapStep>()
.toList() ?? <AMapStep>[];
}
//endregion
//region getters
Future<String?> get_instruction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_instruction", {'__this__': this});
return __result__;
}
Future<String?> get_orientation() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_orientation", {'__this__': this});
return __result__;
}
Future<String?> get_road() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_road", {'__this__': this});
return __result__;
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_distance", {'__this__': this});
return __result__;
}
Future<int?> get_duration() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_duration", {'__this__': this});
return __result__;
}
Future<String?> get_polyline() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_polyline", {'__this__': this});
return __result__;
}
Future<String?> get_action() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_action", {'__this__': this});
return __result__;
}
Future<String?> get_assistantAction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_assistantAction", {'__this__': this});
return __result__;
}
Future<double?> get_tolls() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tolls", {'__this__': this});
return __result__;
}
Future<int?> get_tollDistance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tollDistance", {'__this__': this});
return __result__;
}
Future<String?> get_tollRoad() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tollRoad", {'__this__': this});
return __result__;
}
Future<int?> get_totalTrafficLights() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_totalTrafficLights", {'__this__': this});
return __result__;
}
Future<List<AMapCity>?> get_cities() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_cities", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCity>(it)).where((e) => e != null).cast<AMapCity>().toList();
}
Future<List<AMapTMC>?> get_tmcs() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tmcs", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTMC>(it)).where((e) => e != null).cast<AMapTMC>().toList();
}
//endregion
//region setters
Future<void> set_instruction(String instruction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_instruction', <String, dynamic>{'__this__': this, "instruction": instruction});
}
Future<void> set_orientation(String orientation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_orientation', <String, dynamic>{'__this__': this, "orientation": orientation});
}
Future<void> set_road(String road) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_road', <String, dynamic>{'__this__': this, "road": road});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_duration(int duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
}
Future<void> set_polyline(String polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_polyline', <String, dynamic>{'__this__': this, "polyline": polyline});
}
Future<void> set_action(String action) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_action', <String, dynamic>{'__this__': this, "action": action});
}
Future<void> set_assistantAction(String assistantAction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_assistantAction', <String, dynamic>{'__this__': this, "assistantAction": assistantAction});
}
Future<void> set_tolls(double tolls) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tolls', <String, dynamic>{'__this__': this, "tolls": tolls});
}
Future<void> set_tollDistance(int tollDistance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tollDistance', <String, dynamic>{'__this__': this, "tollDistance": tollDistance});
}
Future<void> set_tollRoad(String tollRoad) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tollRoad', <String, dynamic>{'__this__': this, "tollRoad": tollRoad});
}
Future<void> set_totalTrafficLights(int totalTrafficLights) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_totalTrafficLights', <String, dynamic>{'__this__': this, "totalTrafficLights": totalTrafficLights});
}
Future<void> set_cities(List<AMapCity> cities) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_cities', <String, dynamic>{'__this__': this, "cities": cities});
}
Future<void> set_tmcs(List<AMapTMC> tmcs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tmcs', <String, dynamic>{'__this__': this, "tmcs": tmcs});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapStep{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapStep_Batch on List<AMapStep?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_instruction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_instruction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_orientation_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_orientation_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_road_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_road_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_duration_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_polyline_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_polyline_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_action_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_action_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_assistantAction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_assistantAction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<double?>> get_tolls_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tolls_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<int?>> get_tollDistance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tollDistance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_tollRoad_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tollRoad_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_totalTrafficLights_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_totalTrafficLights_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<AMapCity>?>> get_cities_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_cities_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCity>(it)).where((e) => e != null).cast<AMapCity>().toList()).cast<List<AMapCity>?>().toList();
}
Future<List<List<AMapTMC>?>> get_tmcs_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStep::get_tmcs_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapTMC>(it)).where((e) => e != null).cast<AMapTMC>().toList()).cast<List<AMapTMC>?>().toList();
}
//endregion
//region setters
Future<void> set_instruction_batch(List<String> instruction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_instruction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "instruction": instruction[__i__]}]);
}
Future<void> set_orientation_batch(List<String> orientation) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_orientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "orientation": orientation[__i__]}]);
}
Future<void> set_road_batch(List<String> road) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_road_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "road": road[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_duration_batch(List<int> duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
}
Future<void> set_polyline_batch(List<String> polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_polyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polyline": polyline[__i__]}]);
}
Future<void> set_action_batch(List<String> action) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_action_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "action": action[__i__]}]);
}
Future<void> set_assistantAction_batch(List<String> assistantAction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_assistantAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "assistantAction": assistantAction[__i__]}]);
}
Future<void> set_tolls_batch(List<double> tolls) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tolls": tolls[__i__]}]);
}
Future<void> set_tollDistance_batch(List<int> tollDistance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tollDistance": tollDistance[__i__]}]);
}
Future<void> set_tollRoad_batch(List<String> tollRoad) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tollRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tollRoad": tollRoad[__i__]}]);
}
Future<void> set_totalTrafficLights_batch(List<int> totalTrafficLights) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_totalTrafficLights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "totalTrafficLights": totalTrafficLights[__i__]}]);
}
Future<void> set_cities_batch(List<List<AMapCity>> cities) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_cities_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cities": cities[__i__]}]);
}
Future<void> set_tmcs_batch(List<List<AMapTMC>> tmcs) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStep::set_tmcs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tmcs": tmcs[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,181 @@
// 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_search_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 AMapStreetNumber extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapStreetNumber';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapStreetNumber> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapStreetNumber',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapStreetNumber>(__result__)!;
}
static Future<List<AMapStreetNumber>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapStreetNumber',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapStreetNumber>(it))
.where((element) => element !=null)
.cast<AMapStreetNumber>()
.toList() ?? <AMapStreetNumber>[];
}
//endregion
//region getters
Future<String?> get_street() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_street", {'__this__': this});
return __result__;
}
Future<String?> get_number() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_number", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_distance", {'__this__': this});
return __result__;
}
Future<String?> get_direction() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_direction", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_street(String street) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_street', <String, dynamic>{'__this__': this, "street": street});
}
Future<void> set_number(String number) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_number', <String, dynamic>{'__this__': this, "number": number});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_direction(String direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_direction', <String, dynamic>{'__this__': this, "direction": direction});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapStreetNumber{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapStreetNumber_Batch on List<AMapStreetNumber?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_street_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_street_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_number_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_number_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_direction_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapStreetNumber::get_direction_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_street_batch(List<String> street) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_street_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "street": street[__i__]}]);
}
Future<void> set_number_batch(List<String> number) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_number_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "number": number[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_direction_batch(List<String> direction) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapStreetNumber::set_direction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "direction": direction[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,221 @@
// 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_search_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 AMapSubPOI extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapSubPOI';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapSubPOI> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapSubPOI',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapSubPOI>(__result__)!;
}
static Future<List<AMapSubPOI>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapSubPOI',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapSubPOI>(it))
.where((element) => element !=null)
.cast<AMapSubPOI>()
.toList() ?? <AMapSubPOI>[];
}
//endregion
//region getters
Future<String?> get_uid() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_uid", {'__this__': this});
return __result__;
}
Future<String?> get_name() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_name", {'__this__': this});
return __result__;
}
Future<String?> get_sname() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_sname", {'__this__': this});
return __result__;
}
Future<AMapGeoPoint?> get_location() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_location", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<String?> get_address() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_address", {'__this__': this});
return __result__;
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_distance", {'__this__': this});
return __result__;
}
Future<String?> get_subtype() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_subtype", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uid(String uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_uid', <String, dynamic>{'__this__': this, "uid": uid});
}
Future<void> set_name(String name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_name', <String, dynamic>{'__this__': this, "name": name});
}
Future<void> set_sname(String sname) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_sname', <String, dynamic>{'__this__': this, "sname": sname});
}
Future<void> set_location(AMapGeoPoint location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_location', <String, dynamic>{'__this__': this, "location": location});
}
Future<void> set_address(String address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_address', <String, dynamic>{'__this__': this, "address": address});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_subtype(String subtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_subtype', <String, dynamic>{'__this__': this, "subtype": subtype});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapSubPOI{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapSubPOI_Batch on List<AMapSubPOI?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<String?>> get_uid_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_name_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_name_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_sname_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_sname_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<AMapGeoPoint?>> get_location_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_location_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<String?>> get_address_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_address_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_subtype_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSubPOI::get_subtype_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_uid_batch(List<String> uid) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]);
}
Future<void> set_name_batch(List<String> name) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_name_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "name": name[__i__]}]);
}
Future<void> set_sname_batch(List<String> sname) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_sname_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sname": sname[__i__]}]);
}
Future<void> set_location_batch(List<AMapGeoPoint> location) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_location_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "location": location[__i__]}]);
}
Future<void> set_address_batch(List<String> address) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_address_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "address": address[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_subtype_batch(List<String> subtype) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSubPOI::set_subtype_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "subtype": subtype[__i__]}]);
}
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,121 @@
// 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_search_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 AMapSuggestion extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapSuggestion';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapSuggestion> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapSuggestion',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapSuggestion>(__result__)!;
}
static Future<List<AMapSuggestion>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapSuggestion',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapSuggestion>(it))
.where((element) => element !=null)
.cast<AMapSuggestion>()
.toList() ?? <AMapSuggestion>[];
}
//endregion
//region getters
Future<List<String>?> get_keywords() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSuggestion::get_keywords", {'__this__': this});
return (__result__ as List?)?.cast<String>();
}
Future<List<AMapCity>?> get_cities() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapSuggestion::get_cities", {'__this__': this});
return (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCity>(it)).where((e) => e != null).cast<AMapCity>().toList();
}
//endregion
//region setters
Future<void> set_keywords(List<String> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSuggestion::set_keywords', <String, dynamic>{'__this__': this, "keywords": keywords});
}
Future<void> set_cities(List<AMapCity> cities) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSuggestion::set_cities', <String, dynamic>{'__this__': this, "cities": cities});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapSuggestion{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapSuggestion_Batch on List<AMapSuggestion?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<List<String>?>> get_keywords_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSuggestion::get_keywords_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<String>()).cast<List<String>?>().toList();
}
Future<List<List<AMapCity>?>> get_cities_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapSuggestion::get_cities_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyIOSAs<AMapCity>(it)).where((e) => e != null).cast<AMapCity>().toList()).cast<List<AMapCity>?>().toList();
}
//endregion
//region setters
Future<void> set_keywords_batch(List<List<String>> keywords) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSuggestion::set_keywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "keywords": keywords[__i__]}]);
}
Future<void> set_cities_batch(List<List<AMapCity>> cities) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapSuggestion::set_cities_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "cities": cities[__i__]}]);
}
//endregion
//region methods
//endregion
}

141
lib/src/ios/AMapTMC.g.dart Normal file
View File

@ -0,0 +1,141 @@
// 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_search_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 AMapTMC extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapTMC';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapTMC> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapTMC',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapTMC>(__result__)!;
}
static Future<List<AMapTMC>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapTMC',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapTMC>(it))
.where((element) => element !=null)
.cast<AMapTMC>()
.toList() ?? <AMapTMC>[];
}
//endregion
//region getters
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTMC::get_distance", {'__this__': this});
return __result__;
}
Future<String?> get_status() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTMC::get_status", {'__this__': this});
return __result__;
}
Future<String?> get_polyline() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTMC::get_polyline", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTMC::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_status(String status) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTMC::set_status', <String, dynamic>{'__this__': this, "status": status});
}
Future<void> set_polyline(String polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTMC::set_polyline', <String, dynamic>{'__this__': this, "polyline": polyline});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapTMC{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapTMC_Batch on List<AMapTMC?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTMC::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_status_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTMC::get_status_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_polyline_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTMC::get_polyline_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTMC::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_status_batch(List<String> status) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTMC::set_status_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "status": status[__i__]}]);
}
Future<void> set_polyline_batch(List<String> polyline) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTMC::set_polyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "polyline": polyline[__i__]}]);
}
//endregion
//region methods
//endregion
}

201
lib/src/ios/AMapTaxi.g.dart Normal file
View File

@ -0,0 +1,201 @@
// 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_search_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 AMapTaxi extends AMapSearchObject with NSCoding, NSCopying {
//region constants
static const String name__ = 'AMapTaxi';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<AMapTaxi> create__({ bool init = true /* ios only */ }) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createAMapTaxi',
{'init': init}
);
return AmapSearchFluttifyIOSAs<AMapTaxi>(__result__)!;
}
static Future<List<AMapTaxi>> create_batch__(int length, { bool init = true /* ios only */ }) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchAMapTaxi',
{'length': length, 'init': init}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyIOSAs<AMapTaxi>(it))
.where((element) => element !=null)
.cast<AMapTaxi>()
.toList() ?? <AMapTaxi>[];
}
//endregion
//region getters
Future<AMapGeoPoint?> get_origin() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_origin", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<AMapGeoPoint?> get_destination() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_destination", {'__this__': this});
return AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__);
}
Future<int?> get_distance() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_distance", {'__this__': this});
return __result__;
}
Future<int?> get_duration() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_duration", {'__this__': this});
return __result__;
}
Future<String?> get_sname() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_sname", {'__this__': this});
return __result__;
}
Future<String?> get_tname() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_tname", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_origin(AMapGeoPoint origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_origin', <String, dynamic>{'__this__': this, "origin": origin});
}
Future<void> set_destination(AMapGeoPoint destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_destination', <String, dynamic>{'__this__': this, "destination": destination});
}
Future<void> set_distance(int distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_distance', <String, dynamic>{'__this__': this, "distance": distance});
}
Future<void> set_duration(int duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_duration', <String, dynamic>{'__this__': this, "duration": duration});
}
Future<void> set_sname(String sname) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_sname', <String, dynamic>{'__this__': this, "sname": sname});
}
Future<void> set_tname(String tname) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_tname', <String, dynamic>{'__this__': this, "tname": tname});
}
//endregion
//region methods
//endregion
@override
String toString() {
return 'AMapTaxi{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension AMapTaxi_Batch on List<AMapTaxi?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<AMapGeoPoint?>> get_origin_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_origin_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<AMapGeoPoint?>> get_destination_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_destination_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapGeoPoint>(__result__)).cast<AMapGeoPoint?>().toList();
}
Future<List<int?>> get_distance_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_distance_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_duration_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_duration_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> get_sname_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_sname_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> get_tname_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTaxi::get_tname_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
//region setters
Future<void> set_origin_batch(List<AMapGeoPoint> origin) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_origin_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "origin": origin[__i__]}]);
}
Future<void> set_destination_batch(List<AMapGeoPoint> destination) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_destination_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "destination": destination[__i__]}]);
}
Future<void> set_distance_batch(List<int> distance) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_distance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "distance": distance[__i__]}]);
}
Future<void> set_duration_batch(List<int> duration) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_duration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "duration": duration[__i__]}]);
}
Future<void> set_sname_batch(List<String> sname) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_sname_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "sname": sname[__i__]}]);
}
Future<void> set_tname_batch(List<String> tname) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapTaxi::set_tname_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "tname": tname[__i__]}]);
}
//endregion
//region methods
//endregion
}

Some files were not shown because too many files have changed in this diff Show More