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

View File

@ -0,0 +1,5 @@
library amap_search_fluttify;
export 'src/android/android.export.g.dart';
export 'src/facade/amap_search.dart';
export 'src/ios/ios.export.g.dart';

View File

@ -0,0 +1,164 @@
export 'type_op.g.dart';
export 'constants.g.dart';
export 'com/amap/api/services/busline/BusLineResult.g.dart';
export 'com/amap/api/services/busline/BusStationResult.g.dart';
export 'com/amap/api/services/busline/BusLineQuery.g.dart';
export 'com/amap/api/services/busline/BusLineSearch.g.dart';
export 'com/amap/api/services/busline/BusStationSearch.g.dart';
export 'com/amap/api/services/busline/BusStationQuery.g.dart';
export 'com/amap/api/services/busline/BusStationItem.g.dart';
export 'com/amap/api/services/busline/BusStationSearch/OnBusStationSearchListener.g.dart';
export 'com/amap/api/services/busline/BusLineQuery/SearchType.g.dart';
export 'com/amap/api/services/busline/BusLineItem.g.dart';
export 'com/amap/api/services/busline/BusLineSearch/OnBusLineSearchListener.g.dart';
export 'com/amap/api/services/core/AMapException.g.dart';
export 'com/amap/api/services/core/LatLonPoint.g.dart';
export 'com/amap/api/services/core/PoiItem.g.dart';
export 'com/amap/api/services/core/SuggestionCity.g.dart';
export 'com/amap/api/services/core/LatLonSharePoint.g.dart';
export 'com/amap/api/services/core/ServiceSettings.g.dart';
export 'com/amap/api/services/core/SearchUtils.g.dart';
export 'com/amap/api/services/poisearch/PoiSearch/Query.g.dart';
export 'com/amap/api/services/poisearch/PoiSearch/OnPoiSearchListener.g.dart';
export 'com/amap/api/services/poisearch/PoiSearch/SearchBound.g.dart';
export 'com/amap/api/services/poisearch/IndoorData.g.dart';
export 'com/amap/api/services/poisearch/PoiSearch.g.dart';
export 'com/amap/api/services/poisearch/Photo.g.dart';
export 'com/amap/api/services/poisearch/SubPoiItem.g.dart';
export 'com/amap/api/services/poisearch/PoiItemExtension.g.dart';
export 'com/amap/api/services/poisearch/PoiResult.g.dart';
export 'com/amap/api/services/route/District.g.dart';
export 'com/amap/api/services/route/RouteBusWalkItem.g.dart';
export 'com/amap/api/services/route/DrivePathV2.g.dart';
export 'com/amap/api/services/route/RouteSearch/FromAndTo.g.dart';
export 'com/amap/api/services/route/RouteSearch/OnTruckRouteSearchListener.g.dart';
export 'com/amap/api/services/route/RouteSearch/RideRouteQuery.g.dart';
export 'com/amap/api/services/route/RouteSearch/TruckRouteQuery.g.dart';
export 'com/amap/api/services/route/RouteSearch/OnRoutePlanSearchListener.g.dart';
export 'com/amap/api/services/route/RouteSearch/OnRouteSearchListener.g.dart';
export 'com/amap/api/services/route/RouteSearch/DrivePlanQuery.g.dart';
export 'com/amap/api/services/route/RouteSearch/BusRouteQuery.g.dart';
export 'com/amap/api/services/route/RouteSearch/DriveRouteQuery.g.dart';
export 'com/amap/api/services/route/RouteSearch/WalkRouteQuery.g.dart';
export 'com/amap/api/services/route/BusRouteResult.g.dart';
export 'com/amap/api/services/route/RailwayStationItem.g.dart';
export 'com/amap/api/services/route/DriveRouteResult.g.dart';
export 'com/amap/api/services/route/RailwaySpace.g.dart';
export 'com/amap/api/services/route/DriveRouteResultV2.g.dart';
export 'com/amap/api/services/route/TaxiItem.g.dart';
export 'com/amap/api/services/route/DriveStep.g.dart';
export 'com/amap/api/services/route/RoutePlanResult.g.dart';
export 'com/amap/api/services/route/DriveStepV2.g.dart';
export 'com/amap/api/services/route/ChargeStationInfo.g.dart';
export 'com/amap/api/services/route/DrivePath.g.dart';
export 'com/amap/api/services/route/Navi.g.dart';
export 'com/amap/api/services/route/RideRouteResult.g.dart';
export 'com/amap/api/services/route/RouteRailwayItem.g.dart';
export 'com/amap/api/services/route/SearchCity.g.dart';
export 'com/amap/api/services/route/RouteSearchV2.g.dart';
export 'com/amap/api/services/route/Doorway.g.dart';
export 'com/amap/api/services/route/TimeInfosElement.g.dart';
export 'com/amap/api/services/route/DrivePlanStep.g.dart';
export 'com/amap/api/services/route/TruckPath.g.dart';
export 'com/amap/api/services/route/DistanceItem.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/FromAndTo.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/NewEnergy.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/SlopeCost.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/OnTruckRouteSearchListener.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/OnRoutePlanSearchListener.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/ShowFields.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/CustomCostMode.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/CurveCost.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/OnRouteSearchListener.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/PowerTrainLoss.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/TransCost.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/DrivingStrategy.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/SpeedCost.g.dart';
export 'com/amap/api/services/route/RouteSearchV2/DriveRouteQuery.g.dart';
export 'com/amap/api/services/route/DistanceResult.g.dart';
export 'com/amap/api/services/route/RouteResult.g.dart';
export 'com/amap/api/services/route/TruckRouteRestult.g.dart';
export 'com/amap/api/services/route/Cost.g.dart';
export 'com/amap/api/services/route/DrivePlanPath.g.dart';
export 'com/amap/api/services/route/TruckStep.g.dart';
export 'com/amap/api/services/route/ElecConsumeInfo.g.dart';
export 'com/amap/api/services/route/Path.g.dart';
export 'com/amap/api/services/route/BusPath.g.dart';
export 'com/amap/api/services/route/WalkRouteResult.g.dart';
export 'com/amap/api/services/route/RouteSearchCity.g.dart';
export 'com/amap/api/services/route/WalkPath.g.dart';
export 'com/amap/api/services/route/DriveRoutePlanResult.g.dart';
export 'com/amap/api/services/route/Railway.g.dart';
export 'com/amap/api/services/route/RouteBusLineItem.g.dart';
export 'com/amap/api/services/route/RideStep.g.dart';
export 'com/amap/api/services/route/BusStep.g.dart';
export 'com/amap/api/services/route/TMC.g.dart';
export 'com/amap/api/services/route/WalkStep.g.dart';
export 'com/amap/api/services/route/TimeInfo.g.dart';
export 'com/amap/api/services/route/DistanceSearch/DistanceQuery.g.dart';
export 'com/amap/api/services/route/DistanceSearch/OnDistanceSearchListener.g.dart';
export 'com/amap/api/services/route/RouteSearch.g.dart';
export 'com/amap/api/services/route/DistanceSearch.g.dart';
export 'com/amap/api/services/route/RidePath.g.dart';
export 'com/amap/api/services/road/Crossroad.g.dart';
export 'com/amap/api/services/road/Road.g.dart';
export 'com/amap/api/services/nearby/NearbyInfo.g.dart';
export 'com/amap/api/services/nearby/NearbySearchResult.g.dart';
export 'com/amap/api/services/nearby/NearbySearchFunctionType.g.dart';
export 'com/amap/api/services/nearby/UploadInfoCallback.g.dart';
export 'com/amap/api/services/nearby/UploadInfo.g.dart';
export 'com/amap/api/services/nearby/NearbySearch/NearbyQuery.g.dart';
export 'com/amap/api/services/nearby/NearbySearch/NearbyListener.g.dart';
export 'com/amap/api/services/nearby/NearbySearch.g.dart';
export 'com/amap/api/services/routepoisearch/RoutePOIItem.g.dart';
export 'com/amap/api/services/routepoisearch/RoutePOISearchResult.g.dart';
export 'com/amap/api/services/routepoisearch/RoutePOISearch.g.dart';
export 'com/amap/api/services/routepoisearch/RoutePOISearch/OnRoutePOISearchListener.g.dart';
export 'com/amap/api/services/routepoisearch/RoutePOISearch/RoutePOISearchType.g.dart';
export 'com/amap/api/services/routepoisearch/RoutePOISearchQuery.g.dart';
export 'com/amap/api/services/cloud/CloudImage.g.dart';
export 'com/amap/api/services/cloud/CloudSearch.g.dart';
export 'com/amap/api/services/cloud/CloudItem.g.dart';
export 'com/amap/api/services/cloud/CloudResult.g.dart';
export 'com/amap/api/services/cloud/CloudSearch/Query.g.dart';
export 'com/amap/api/services/cloud/CloudSearch/Sortingrules.g.dart';
export 'com/amap/api/services/cloud/CloudSearch/SearchBound.g.dart';
export 'com/amap/api/services/cloud/CloudSearch/OnCloudSearchListener.g.dart';
export 'com/amap/api/services/cloud/CloudItemDetail.g.dart';
export 'com/amap/api/services/weather/LocalWeatherLiveResult.g.dart';
export 'com/amap/api/services/weather/WeatherSearch/OnWeatherSearchListener.g.dart';
export 'com/amap/api/services/weather/WeatherSearch.g.dart';
export 'com/amap/api/services/weather/WeatherSearchQuery.g.dart';
export 'com/amap/api/services/weather/LocalWeatherForecast.g.dart';
export 'com/amap/api/services/weather/LocalWeatherLive.g.dart';
export 'com/amap/api/services/weather/LocalWeatherForecastResult.g.dart';
export 'com/amap/api/services/weather/LocalDayWeatherForecast.g.dart';
export 'com/amap/api/services/geocoder/GeocodeSearch.g.dart';
export 'com/amap/api/services/geocoder/RegeocodeResult.g.dart';
export 'com/amap/api/services/geocoder/RegeocodeRoad.g.dart';
export 'com/amap/api/services/geocoder/GeocodeResult.g.dart';
export 'com/amap/api/services/geocoder/GeocodeAddress.g.dart';
export 'com/amap/api/services/geocoder/StreetNumber.g.dart';
export 'com/amap/api/services/geocoder/GeocodeSearch/OnGeocodeSearchListener.g.dart';
export 'com/amap/api/services/geocoder/RegeocodeQuery.g.dart';
export 'com/amap/api/services/geocoder/BusinessArea.g.dart';
export 'com/amap/api/services/geocoder/AoiItem.g.dart';
export 'com/amap/api/services/geocoder/GeocodeQuery.g.dart';
export 'com/amap/api/services/geocoder/RegeocodeAddress.g.dart';
export 'com/amap/api/services/district/DistrictItem.g.dart';
export 'com/amap/api/services/district/DistrictSearch.g.dart';
export 'com/amap/api/services/district/DistrictResult.g.dart';
export 'com/amap/api/services/district/DistrictSearchQuery.g.dart';
export 'com/amap/api/services/district/DistrictSearch/OnDistrictSearchListener.g.dart';
export 'com/amap/api/services/help/Inputtips.g.dart';
export 'com/amap/api/services/help/Inputtips/InputtipsListener.g.dart';
export 'com/amap/api/services/help/InputtipsQuery.g.dart';
export 'com/amap/api/services/help/Tip.g.dart';
export 'com/amap/api/services/share/ShareSearch/ShareFromAndTo.g.dart';
export 'com/amap/api/services/share/ShareSearch/ShareDrivingRouteQuery.g.dart';
export 'com/amap/api/services/share/ShareSearch/ShareWalkRouteQuery.g.dart';
export 'com/amap/api/services/share/ShareSearch/OnShareSearchListener.g.dart';
export 'com/amap/api/services/share/ShareSearch/ShareBusRouteQuery.g.dart';
export 'com/amap/api/services/share/ShareSearch/ShareNaviQuery.g.dart';
export 'com/amap/api/services/share/ShareSearch.g.dart';
export '../facade/shared.g.dart';

View File

@ -0,0 +1,811 @@
// 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/android/android.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 com_amap_api_services_busline_BusLineItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusLineItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_busline_BusLineItem> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_busline_BusLineItem__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineItem>(__result__)!;
}
static Future<List<com_amap_api_services_busline_BusLineItem>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_busline_BusLineItem__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_busline_BusLineItem>()
.toList() ?? <com_amap_api_services_busline_BusLineItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getBusLineName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getBusLineName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusLineName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBusLineName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setBusLineName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusLineName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getBusLineType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getBusLineType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusLineType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBusLineType(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setBusLineType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusLineType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCityCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getCityCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getCityCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCityCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setCityCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setCityCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getDirectionsCoordinates() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getDirectionsCoordinates([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getDirectionsCoordinates', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setDirectionsCoordinates(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setDirectionsCoordinates([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setDirectionsCoordinates', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getBounds() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getBounds([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBounds', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setBounds(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setBounds([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBounds', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getBusLineId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getBusLineId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusLineId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBusLineId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setBusLineId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusLineId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getOriginatingStation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getOriginatingStation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getOriginatingStation', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setOriginatingStation(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setOriginatingStation([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setOriginatingStation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTerminalStation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getTerminalStation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getTerminalStation', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTerminalStation(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setTerminalStation([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setTerminalStation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getBusCompany() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getBusCompany([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusCompany', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBusCompany(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setBusCompany([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusCompany', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getBasicPrice() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getBasicPrice([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBasicPrice', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBasicPrice(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setBasicPrice([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBasicPrice', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTotalPrice() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getTotalPrice([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getTotalPrice', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTotalPrice(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setTotalPrice([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setTotalPrice', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_busline_BusStationItem>?> getBusStations() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::getBusStations([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusStations', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusStationItem>().toList();
}
Future<void> setBusStations(List<com_amap_api_services_busline_BusStationItem> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineItem@$refId::setBusStations([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusStations', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusLineItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusLineItem_Batch on List<com_amap_api_services_busline_BusLineItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getBusLineName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusLineName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBusLineName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusLineName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getBusLineType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusLineType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBusLineType_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusLineType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCityCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCityCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getDirectionsCoordinates_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getDirectionsCoordinates_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setDirectionsCoordinates_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setDirectionsCoordinates_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getBounds_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBounds_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setBounds_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBounds_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getBusLineId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusLineId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBusLineId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusLineId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getOriginatingStation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getOriginatingStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setOriginatingStation_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setOriginatingStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTerminalStation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getTerminalStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setTerminalStation_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setTerminalStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getBusCompany_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusCompany_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBusCompany_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusCompany_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getBasicPrice_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBasicPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setBasicPrice_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBasicPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTotalPrice_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getTotalPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTotalPrice_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setTotalPrice_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_busline_BusStationItem>?>> getBusStations_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::getBusStations_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusStationItem>().toList()).cast<List<com_amap_api_services_busline_BusStationItem>?>().toList();
}
Future<List<void>> setBusStations_batch(List<List<com_amap_api_services_busline_BusStationItem>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineItem::setBusStations_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,475 @@
// 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/android/android.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 com_amap_api_services_busline_BusLineQuery extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusLineQuery';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_busline_BusLineQuery> create__String__com_amap_api_services_busline_BusLineQuery_SearchType__String(String var1, com_amap_api_services_busline_BusLineQuery_SearchType var2, String var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_busline_BusLineQuery__String__com_amap_api_services_busline_BusLineQuery_SearchType__String',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(__result__)!;
}
static Future<List<com_amap_api_services_busline_BusLineQuery>> create_batch__String__com_amap_api_services_busline_BusLineQuery_SearchType__String(List<String> var1, List<com_amap_api_services_busline_BusLineQuery_SearchType> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_busline_BusLineQuery__String__com_amap_api_services_busline_BusLineQuery_SearchType__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_busline_BusLineQuery>()
.toList() ?? <com_amap_api_services_busline_BusLineQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_busline_BusLineQuery_SearchType?> getCategory() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::getCategory([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getCategory', {"__this__": this});
// handle native call
return (__result__ as int).tocom_amap_api_services_busline_BusLineQuery_SearchType();
}
Future<String?> getQueryString() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::getQueryString([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getQueryString', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setQueryString(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::setQueryString([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setQueryString', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::getCity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getCity', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCity(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::setCity([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setCity', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageSize() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::getPageSize([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getPageSize', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPageSize(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::setPageSize([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setPageSize', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageNumber() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::getPageNumber([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getPageNumber', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPageNumber(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::setPageNumber([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setPageNumber', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setCategory(com_amap_api_services_busline_BusLineQuery_SearchType var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::setCategory([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setCategory', {"var1": var1.toValue(), "__this__": this});
// handle native call
return __result__;
}
Future<String?> getExtensions() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::getExtensions([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getExtensions', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setExtensions(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::setExtensions([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setExtensions', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_busline_BusLineQuery?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(__result__);
}
Future<bool?> weakEquals(com_amap_api_services_busline_BusLineQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineQuery@$refId::weakEquals([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::weakEquals', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusLineQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusLineQuery_Batch on List<com_amap_api_services_busline_BusLineQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_busline_BusLineQuery_SearchType?>> getCategory_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getCategory_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as int).tocom_amap_api_services_busline_BusLineQuery_SearchType()).cast<com_amap_api_services_busline_BusLineQuery_SearchType?>().toList();
}
Future<List<String?>> getQueryString_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getQueryString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setQueryString_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setQueryString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCity_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getPageSize_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPageSize_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getPageNumber_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getPageNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPageNumber_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setPageNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setCategory_batch(List<com_amap_api_services_busline_BusLineQuery_SearchType> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setCategory_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__].toValue(), "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getExtensions_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::getExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setExtensions_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::setExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_busline_BusLineQuery?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(__result__)).cast<com_amap_api_services_busline_BusLineQuery?>().toList();
}
Future<List<bool?>> weakEquals_batch(List<com_amap_api_services_busline_BusLineQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineQuery::weakEquals_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
}

View File

@ -0,0 +1,28 @@
// 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 com_amap_api_services_busline_BusLineQuery_SearchType {
BY_LINE_ID /* null */,
BY_LINE_NAME /* null */
}
extension com_amap_api_services_busline_BusLineQuery_SearchTypeToX on com_amap_api_services_busline_BusLineQuery_SearchType {
int toValue() {
switch (this) {
case com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_ID: return com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_ID.index + 0;
case com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_NAME: return com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_NAME.index + 0;
default: return 0;
}
}
}
extension com_amap_api_services_busline_BusLineQuery_SearchTypeFromX on int {
com_amap_api_services_busline_BusLineQuery_SearchType tocom_amap_api_services_busline_BusLineQuery_SearchType() {
switch (this) {
default: return com_amap_api_services_busline_BusLineQuery_SearchType.values[this + 0];
}
}
}

View File

@ -0,0 +1,231 @@
// 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/android/android.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 com_amap_api_services_busline_BusLineResult extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusLineResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<com_amap_api_services_busline_BusLineResult?> createPagedResult(com_amap_api_services_busline_BusLineQuery var0, int var1, List<com_amap_api_services_core_SuggestionCity> var2, List<String> var3, List<com_amap_api_services_busline_BusLineItem> var4) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineResult::createPagedResult([\'var1\':$var1, \'var3\':$var3])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::createPagedResult', {"var0": var0, "var1": var1, "var2": var2, "var3": var3, "var4": var4});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineResult>(__result__);
}
Future<int?> getPageCount() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineResult@$refId::getPageCount([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getPageCount', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_busline_BusLineQuery?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineResult@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(__result__);
}
Future<List<String>?> getSearchSuggestionKeywords() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineResult@$refId::getSearchSuggestionKeywords([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getSearchSuggestionKeywords', {"__this__": this});
// handle native call
return (__result__ as List?)?.cast<String>();
}
Future<List<com_amap_api_services_core_SuggestionCity>?> getSearchSuggestionCities() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineResult@$refId::getSearchSuggestionCities([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getSearchSuggestionCities', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(it)).where((e) => e != null).cast<com_amap_api_services_core_SuggestionCity>().toList();
}
Future<List<com_amap_api_services_busline_BusLineItem>?> getBusLines() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineResult@$refId::getBusLines([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getBusLines', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusLineItem>().toList();
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusLineResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusLineResult_Batch on List<com_amap_api_services_busline_BusLineResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<List<com_amap_api_services_busline_BusLineResult?>> createPagedResult_batch(List<com_amap_api_services_busline_BusLineQuery> var0, List<int> var1, List<List<com_amap_api_services_core_SuggestionCity>> var2, List<List<String>> var3, List<List<com_amap_api_services_busline_BusLineItem>> var4) async {
assert(var0.length == var1.length && var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::createPagedResult_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineResult>(__result__)).cast<com_amap_api_services_busline_BusLineResult?>().toList();
}
Future<List<int?>> getPageCount_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getPageCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<com_amap_api_services_busline_BusLineQuery?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(__result__)).cast<com_amap_api_services_busline_BusLineQuery?>().toList();
}
Future<List<List<String>?>> getSearchSuggestionKeywords_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getSearchSuggestionKeywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<String>()).cast<List<String>?>().toList();
}
Future<List<List<com_amap_api_services_core_SuggestionCity>?>> getSearchSuggestionCities_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getSearchSuggestionCities_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(it)).where((e) => e != null).cast<com_amap_api_services_core_SuggestionCity>().toList()).cast<List<com_amap_api_services_core_SuggestionCity>?>().toList();
}
Future<List<List<com_amap_api_services_busline_BusLineItem>?>> getBusLines_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineResult::getBusLines_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusLineItem>().toList()).cast<List<com_amap_api_services_busline_BusLineItem>?>().toList();
}
//endregion
}

View File

@ -0,0 +1,213 @@
// 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/android/android.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 com_amap_api_services_busline_BusLineSearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusLineSearch';
@override
final String tag__ = 'amap_search_fluttify';
static final String EXTENSIONS_ALL = "all";
static final String EXTENSIONS_BASE = "base";
//endregion
//region creators
static Future<com_amap_api_services_busline_BusLineSearch> create__android_content_Context__com_amap_api_services_busline_BusLineQuery(android_content_Context var1, com_amap_api_services_busline_BusLineQuery var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_busline_BusLineSearch__android_content_Context__com_amap_api_services_busline_BusLineQuery',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineSearch>(__result__)!;
}
static Future<List<com_amap_api_services_busline_BusLineSearch>> create_batch__android_content_Context__com_amap_api_services_busline_BusLineQuery(List<android_content_Context> var1, List<com_amap_api_services_busline_BusLineQuery> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_busline_BusLineSearch__android_content_Context__com_amap_api_services_busline_BusLineQuery',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineSearch>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_busline_BusLineSearch>()
.toList() ?? <com_amap_api_services_busline_BusLineSearch>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_busline_BusLineResult?> searchBusLine() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineSearch@$refId::searchBusLine([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::searchBusLine', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineResult>(__result__);
}
Future<void> setOnBusLineSearchListener(com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineSearch@$refId::setOnBusLineSearchListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::setOnBusLineSearchListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> searchBusLineAsyn() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineSearch@$refId::searchBusLineAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::searchBusLineAsyn', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setQuery(com_amap_api_services_busline_BusLineQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineSearch@$refId::setQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::setQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_busline_BusLineQuery?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusLineSearch@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusLineSearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusLineSearch_Batch on List<com_amap_api_services_busline_BusLineSearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_busline_BusLineResult?>> searchBusLine_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::searchBusLine_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineResult>(__result__)).cast<com_amap_api_services_busline_BusLineResult?>().toList();
}
Future<List<void>> searchBusLineAsyn_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::searchBusLineAsyn_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>> setQuery_batch(List<com_amap_api_services_busline_BusLineQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::setQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_busline_BusLineQuery?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineQuery>(__result__)).cast<com_amap_api_services_busline_BusLineQuery?>().toList();
}
//endregion
}

View File

@ -0,0 +1,67 @@
// 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/android/android.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 _com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener_SUB extends java_lang_Object with com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener {}
mixin com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener on java_lang_Object {
static com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener subInstance() => _com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener_SUB();
static Future<com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch.OnBusLineSearchListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.busline.BusLineSearch.OnBusLineSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onBusLineSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onBusLineSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onBusLineSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineResult>(args['var1']), args['var2']);
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(com_amap_api_services_busline_BusLineResult? var1, int? var2)? onBusLineSearched;
}

View File

@ -0,0 +1,419 @@
// 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/android/android.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 com_amap_api_services_busline_BusStationItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusStationItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_busline_BusStationItem> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_busline_BusStationItem__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(__result__)!;
}
static Future<List<com_amap_api_services_busline_BusStationItem>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_busline_BusStationItem__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_busline_BusStationItem>()
.toList() ?? <com_amap_api_services_busline_BusStationItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getBusStationId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::getBusStationId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getBusStationId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBusStationId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::setBusStationId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setBusStationId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getBusStationName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::getBusStationName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getBusStationName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBusStationName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::setBusStationName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setBusStationName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLatLonPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::getLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getLatLonPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setLatLonPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::setLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setLatLonPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCityCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::getCityCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getCityCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCityCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::setCityCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setCityCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAdCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::getAdCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getAdCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAdCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::setAdCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setAdCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_busline_BusLineItem>?> getBusLineItems() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::getBusLineItems([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getBusLineItems', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusLineItem>().toList();
}
Future<void> setBusLineItems(List<com_amap_api_services_busline_BusLineItem> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationItem@$refId::setBusLineItems([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setBusLineItems', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusStationItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusStationItem_Batch on List<com_amap_api_services_busline_BusStationItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getBusStationId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getBusStationId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBusStationId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setBusStationId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getBusStationName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getBusStationName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBusStationName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setBusStationName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLatLonPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setLatLonPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCityCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCityCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAdCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getAdCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAdCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setAdCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_busline_BusLineItem>?>> getBusLineItems_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::getBusLineItems_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusLineItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusLineItem>().toList()).cast<List<com_amap_api_services_busline_BusLineItem>?>().toList();
}
Future<List<void>> setBusLineItems_batch(List<List<com_amap_api_services_busline_BusLineItem>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationItem::setBusLineItems_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,363 @@
// 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/android/android.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 com_amap_api_services_busline_BusStationQuery extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusStationQuery';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_busline_BusStationQuery> create__String__String(String var1, String var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_busline_BusStationQuery__String__String',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(__result__)!;
}
static Future<List<com_amap_api_services_busline_BusStationQuery>> create_batch__String__String(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_busline_BusStationQuery__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_busline_BusStationQuery>()
.toList() ?? <com_amap_api_services_busline_BusStationQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getQueryString() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::getQueryString([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getQueryString', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getCity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::getCity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getCity', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageSize() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::getPageSize([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getPageSize', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageNumber() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::getPageNumber([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getPageNumber', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setQueryString(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::setQueryString([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setQueryString', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setCity(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::setCity([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setCity', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setPageSize(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::setPageSize([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setPageSize', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setPageNumber(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::setPageNumber([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setPageNumber', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_busline_BusStationQuery?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(__result__);
}
Future<bool?> weakEquals(com_amap_api_services_busline_BusStationQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationQuery@$refId::weakEquals([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::weakEquals', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusStationQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusStationQuery_Batch on List<com_amap_api_services_busline_BusStationQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getQueryString_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getQueryString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getCity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getPageSize_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> getPageNumber_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::getPageNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setQueryString_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setQueryString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setCity_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setPageSize_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setPageNumber_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::setPageNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_busline_BusStationQuery?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(__result__)).cast<com_amap_api_services_busline_BusStationQuery?>().toList();
}
Future<List<bool?>> weakEquals_batch(List<com_amap_api_services_busline_BusStationQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationQuery::weakEquals_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
//endregion
}

View File

@ -0,0 +1,231 @@
// 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/android/android.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 com_amap_api_services_busline_BusStationResult extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusStationResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<com_amap_api_services_busline_BusStationResult?> createPagedResult(com_amap_api_services_busline_BusStationQuery var0, int var1, List<com_amap_api_services_core_SuggestionCity> var2, List<String> var3, List<com_amap_api_services_busline_BusStationItem> var4) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationResult::createPagedResult([\'var1\':$var1, \'var3\':$var3])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::createPagedResult', {"var0": var0, "var1": var1, "var2": var2, "var3": var3, "var4": var4});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationResult>(__result__);
}
Future<int?> getPageCount() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationResult@$refId::getPageCount([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getPageCount', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_busline_BusStationQuery?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationResult@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(__result__);
}
Future<List<String>?> getSearchSuggestionKeywords() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationResult@$refId::getSearchSuggestionKeywords([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getSearchSuggestionKeywords', {"__this__": this});
// handle native call
return (__result__ as List?)?.cast<String>();
}
Future<List<com_amap_api_services_core_SuggestionCity>?> getSearchSuggestionCities() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationResult@$refId::getSearchSuggestionCities([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getSearchSuggestionCities', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(it)).where((e) => e != null).cast<com_amap_api_services_core_SuggestionCity>().toList();
}
Future<List<com_amap_api_services_busline_BusStationItem>?> getBusStations() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationResult@$refId::getBusStations([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getBusStations', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusStationItem>().toList();
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusStationResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusStationResult_Batch on List<com_amap_api_services_busline_BusStationResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<List<com_amap_api_services_busline_BusStationResult?>> createPagedResult_batch(List<com_amap_api_services_busline_BusStationQuery> var0, List<int> var1, List<List<com_amap_api_services_core_SuggestionCity>> var2, List<List<String>> var3, List<List<com_amap_api_services_busline_BusStationItem>> var4) async {
assert(var0.length == var1.length && var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::createPagedResult_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationResult>(__result__)).cast<com_amap_api_services_busline_BusStationResult?>().toList();
}
Future<List<int?>> getPageCount_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getPageCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<com_amap_api_services_busline_BusStationQuery?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(__result__)).cast<com_amap_api_services_busline_BusStationQuery?>().toList();
}
Future<List<List<String>?>> getSearchSuggestionKeywords_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getSearchSuggestionKeywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<String>()).cast<List<String>?>().toList();
}
Future<List<List<com_amap_api_services_core_SuggestionCity>?>> getSearchSuggestionCities_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getSearchSuggestionCities_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(it)).where((e) => e != null).cast<com_amap_api_services_core_SuggestionCity>().toList()).cast<List<com_amap_api_services_core_SuggestionCity>?>().toList();
}
Future<List<List<com_amap_api_services_busline_BusStationItem>?>> getBusStations_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationResult::getBusStations_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusStationItem>().toList()).cast<List<com_amap_api_services_busline_BusStationItem>?>().toList();
}
//endregion
}

View File

@ -0,0 +1,212 @@
// 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/android/android.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 com_amap_api_services_busline_BusStationSearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.busline.BusStationSearch';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_busline_BusStationSearch> create__android_content_Context__com_amap_api_services_busline_BusStationQuery(android_content_Context var1, com_amap_api_services_busline_BusStationQuery var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_busline_BusStationSearch__android_content_Context__com_amap_api_services_busline_BusStationQuery',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationSearch>(__result__)!;
}
static Future<List<com_amap_api_services_busline_BusStationSearch>> create_batch__android_content_Context__com_amap_api_services_busline_BusStationQuery(List<android_content_Context> var1, List<com_amap_api_services_busline_BusStationQuery> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_busline_BusStationSearch__android_content_Context__com_amap_api_services_busline_BusStationQuery',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationSearch>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_busline_BusStationSearch>()
.toList() ?? <com_amap_api_services_busline_BusStationSearch>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_busline_BusStationResult?> searchBusStation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationSearch@$refId::searchBusStation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::searchBusStation', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationResult>(__result__);
}
Future<void> setOnBusStationSearchListener(com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationSearch@$refId::setOnBusStationSearchListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::setOnBusStationSearchListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> searchBusStationAsyn() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationSearch@$refId::searchBusStationAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::searchBusStationAsyn', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setQuery(com_amap_api_services_busline_BusStationQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationSearch@$refId::setQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::setQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_busline_BusStationQuery?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.busline.BusStationSearch@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_busline_BusStationSearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_busline_BusStationSearch_Batch on List<com_amap_api_services_busline_BusStationSearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_busline_BusStationResult?>> searchBusStation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::searchBusStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationResult>(__result__)).cast<com_amap_api_services_busline_BusStationResult?>().toList();
}
Future<List<void>> searchBusStationAsyn_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::searchBusStationAsyn_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>> setQuery_batch(List<com_amap_api_services_busline_BusStationQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::setQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_busline_BusStationQuery?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationQuery>(__result__)).cast<com_amap_api_services_busline_BusStationQuery?>().toList();
}
//endregion
}

View File

@ -0,0 +1,67 @@
// 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/android/android.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 _com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener_SUB extends java_lang_Object with com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener {}
mixin com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener on java_lang_Object {
static com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener subInstance() => _com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener_SUB();
static Future<com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch.OnBusStationSearchListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.busline.BusStationSearch.OnBusStationSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onBusStationSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onBusStationSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onBusStationSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationResult>(args['var1']), args['var2']);
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(com_amap_api_services_busline_BusStationResult? var1, int? var2)? onBusStationSearched;
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_cloud_CloudImage extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudImage';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_cloud_CloudImage> create__String__String__String(String var1, String var2, String var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudImage__String__String__String',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudImage>(__result__)!;
}
static Future<List<com_amap_api_services_cloud_CloudImage>> create_batch__String__String__String(List<String> var1, List<String> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudImage__String__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudImage>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudImage>()
.toList() ?? <com_amap_api_services_cloud_CloudImage>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudImage@$refId::getId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::getId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudImage@$refId::setId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::setId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getPreurl() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudImage@$refId::getPreurl([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::getPreurl', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPreurl(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudImage@$refId::setPreurl([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::setPreurl', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getUrl() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudImage@$refId::getUrl([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::getUrl', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setUrl(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudImage@$refId::setUrl([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::setUrl', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudImage{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudImage_Batch on List<com_amap_api_services_cloud_CloudImage?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::getId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::setId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getPreurl_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::getPreurl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setPreurl_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::setPreurl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getUrl_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::getUrl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setUrl_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudImage::setUrl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,475 @@
// 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/android/android.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 com_amap_api_services_cloud_CloudItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_cloud_CloudItem> create__String__com_amap_api_services_core_LatLonPoint__String__String(String var1, com_amap_api_services_core_LatLonPoint var2, String var3, String var4) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudItem__String__com_amap_api_services_core_LatLonPoint__String__String',
{"var1": var1, "var2": var2, "var3": var3, "var4": var4}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudItem>(__result__)!;
}
static Future<List<com_amap_api_services_cloud_CloudItem>> create_batch__String__com_amap_api_services_core_LatLonPoint__String__String(List<String> var1, List<com_amap_api_services_core_LatLonPoint> var2, List<String> var3, List<String> var4) async {
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudItem__String__com_amap_api_services_core_LatLonPoint__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudItem>()
.toList() ?? <com_amap_api_services_cloud_CloudItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getID() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getID([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getID', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTitle() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getTitle([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getTitle', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getSnippet() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getSnippet([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getSnippet', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLatLonPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getLatLonPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<String?> getCreatetime() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getCreatetime([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getCreatetime', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCreatetime(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::setCreatetime([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setCreatetime', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getUpdatetime() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getUpdatetime([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getUpdatetime', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setUpdatetime(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::setUpdatetime([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setUpdatetime', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<Map<String,String>?> getCustomfield() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getCustomfield([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getCustomfield', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCustomfield(Map<String,String> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::setCustomfield([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setCustomfield', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_cloud_CloudImage>?> getCloudImage() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::getCloudImage([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getCloudImage', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudImage>(it)).where((e) => e != null).cast<com_amap_api_services_cloud_CloudImage>().toList();
}
Future<void> setmCloudImage(List<com_amap_api_services_cloud_CloudImage> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudItem@$refId::setmCloudImage([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setmCloudImage', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudItem_Batch on List<com_amap_api_services_cloud_CloudItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getID_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setDistance_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTitle_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getTitle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getSnippet_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getSnippet_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLatLonPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<String?>> getCreatetime_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getCreatetime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCreatetime_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setCreatetime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getUpdatetime_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getUpdatetime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setUpdatetime_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setUpdatetime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<Map<String,String>?>> getCustomfield_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getCustomfield_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<Map<String,String>?>().toList();
}
Future<List<void>> setCustomfield_batch(List<Map<String,String>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setCustomfield_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_cloud_CloudImage>?>> getCloudImage_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::getCloudImage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudImage>(it)).where((e) => e != null).cast<com_amap_api_services_cloud_CloudImage>().toList()).cast<List<com_amap_api_services_cloud_CloudImage>?>().toList();
}
Future<List<void>> setmCloudImage_batch(List<List<com_amap_api_services_cloud_CloudImage>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudItem::setmCloudImage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//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/android/android.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 com_amap_api_services_cloud_CloudItemDetail extends com_amap_api_services_cloud_CloudItem with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudItemDetail';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_cloud_CloudItemDetail> create__String__com_amap_api_services_core_LatLonPoint__String__String(String var1, com_amap_api_services_core_LatLonPoint var2, String var3, String var4) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudItemDetail__String__com_amap_api_services_core_LatLonPoint__String__String',
{"var1": var1, "var2": var2, "var3": var3, "var4": var4}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudItemDetail>(__result__)!;
}
static Future<List<com_amap_api_services_cloud_CloudItemDetail>> create_batch__String__com_amap_api_services_core_LatLonPoint__String__String(List<String> var1, List<com_amap_api_services_core_LatLonPoint> var2, List<String> var3, List<String> var4) async {
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudItemDetail__String__com_amap_api_services_core_LatLonPoint__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudItemDetail>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudItemDetail>()
.toList() ?? <com_amap_api_services_cloud_CloudItemDetail>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudItemDetail{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudItemDetail_Batch on List<com_amap_api_services_cloud_CloudItemDetail?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,231 @@
// 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/android/android.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 com_amap_api_services_cloud_CloudResult extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<com_amap_api_services_cloud_CloudResult?> createPagedResult(com_amap_api_services_cloud_CloudSearch_Query var0, int var1, com_amap_api_services_cloud_CloudSearch_SearchBound var2, int var3, List<com_amap_api_services_cloud_CloudItem> var4) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudResult::createPagedResult([\'var1\':$var1, \'var3\':$var3])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::createPagedResult', {"var0": var0, "var1": var1, "var2": var2, "var3": var3, "var4": var4});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudResult>(__result__);
}
Future<int?> getPageCount() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudResult@$refId::getPageCount([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getPageCount', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_cloud_CloudSearch_Query?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudResult@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Query>(__result__);
}
Future<com_amap_api_services_cloud_CloudSearch_SearchBound?> getBound() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudResult@$refId::getBound([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getBound', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__);
}
Future<List<com_amap_api_services_cloud_CloudItem>?> getClouds() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudResult@$refId::getClouds([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getClouds', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudItem>(it)).where((e) => e != null).cast<com_amap_api_services_cloud_CloudItem>().toList();
}
Future<int?> getTotalCount() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudResult@$refId::getTotalCount([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getTotalCount', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudResult_Batch on List<com_amap_api_services_cloud_CloudResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<List<com_amap_api_services_cloud_CloudResult?>> createPagedResult_batch(List<com_amap_api_services_cloud_CloudSearch_Query> var0, List<int> var1, List<com_amap_api_services_cloud_CloudSearch_SearchBound> var2, List<int> var3, List<List<com_amap_api_services_cloud_CloudItem>> var4) async {
assert(var0.length == var1.length && var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::createPagedResult_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudResult>(__result__)).cast<com_amap_api_services_cloud_CloudResult?>().toList();
}
Future<List<int?>> getPageCount_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getPageCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<com_amap_api_services_cloud_CloudSearch_Query?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Query>(__result__)).cast<com_amap_api_services_cloud_CloudSearch_Query?>().toList();
}
Future<List<com_amap_api_services_cloud_CloudSearch_SearchBound?>> getBound_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getBound_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__)).cast<com_amap_api_services_cloud_CloudSearch_SearchBound?>().toList();
}
Future<List<List<com_amap_api_services_cloud_CloudItem>?>> getClouds_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getClouds_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudItem>(it)).where((e) => e != null).cast<com_amap_api_services_cloud_CloudItem>().toList()).cast<List<com_amap_api_services_cloud_CloudItem>?>().toList();
}
Future<List<int?>> getTotalCount_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudResult::getTotalCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
}

View File

@ -0,0 +1,156 @@
// 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/android/android.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 com_amap_api_services_cloud_CloudSearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudSearch';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_cloud_CloudSearch> create__android_content_Context(android_content_Context var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch__android_content_Context',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch>(__result__)!;
}
static Future<List<com_amap_api_services_cloud_CloudSearch>> create_batch__android_content_Context(List<android_content_Context> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch__android_content_Context',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setOnCloudSearchListener(com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch@$refId::setOnCloudSearchListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch::setOnCloudSearchListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> searchCloudAsyn(com_amap_api_services_cloud_CloudSearch_Query var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch@$refId::searchCloudAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch::searchCloudAsyn', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> searchCloudDetailAsyn(String var1, String var2) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch@$refId::searchCloudDetailAsyn([\'var1\':$var1, \'var2\':$var2])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch::searchCloudDetailAsyn', {"var1": var1, "var2": var2, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudSearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudSearch_Batch on List<com_amap_api_services_cloud_CloudSearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> searchCloudAsyn_batch(List<com_amap_api_services_cloud_CloudSearch_Query> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch::searchCloudAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> searchCloudDetailAsyn_batch(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch::searchCloudDetailAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,78 @@
// 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/android/android.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 _com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener_SUB extends java_lang_Object with com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener {}
mixin com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener on java_lang_Object {
static com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener subInstance() => _com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener_SUB();
static Future<com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.OnCloudSearchListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.cloud.CloudSearch.OnCloudSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onCloudSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onCloudSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onCloudSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudResult>(args['var1']), args['var2']);
break;
case 'onCloudItemDetailSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onCloudItemDetailSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onCloudItemDetailSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudItemDetail>(args['var1']), args['var2']);
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(com_amap_api_services_cloud_CloudResult? var1, int? var2)? onCloudSearched;
Future<void> Function(com_amap_api_services_cloud_CloudItemDetail? var1, int? var2)? onCloudItemDetailSearched;
}

View File

@ -0,0 +1,559 @@
// 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/android/android.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 com_amap_api_services_cloud_CloudSearch_Query extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudSearch.Query';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_cloud_CloudSearch_Query> create__String__String__com_amap_api_services_cloud_CloudSearch_SearchBound(String var1, String var2, com_amap_api_services_cloud_CloudSearch_SearchBound var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch_Query__String__String__com_amap_api_services_cloud_CloudSearch_SearchBound',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Query>(__result__)!;
}
static Future<List<com_amap_api_services_cloud_CloudSearch_Query>> create_batch__String__String__com_amap_api_services_cloud_CloudSearch_SearchBound(List<String> var1, List<String> var2, List<com_amap_api_services_cloud_CloudSearch_SearchBound> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch_Query__String__String__com_amap_api_services_cloud_CloudSearch_SearchBound',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Query>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch_Query>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch_Query>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getQueryString() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getQueryString([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getQueryString', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTableID(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::setTableID([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setTableID', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTableID() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getTableID([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getTableID', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageNum() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getPageNum([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getPageNum', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPageNum(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::setPageNum([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setPageNum', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setPageSize(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::setPageSize([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setPageSize', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageSize() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getPageSize([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getPageSize', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBound(com_amap_api_services_cloud_CloudSearch_SearchBound var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::setBound([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setBound', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_cloud_CloudSearch_SearchBound?> getBound() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getBound([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getBound', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__);
}
Future<void> addFilterString(String var1, String var2) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::addFilterString([\'var1\':$var1, \'var2\':$var2])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::addFilterString', {"var1": var1, "var2": var2, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getFilterString() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getFilterString([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getFilterString', {"__this__": this});
// handle native call
return __result__;
}
Future<void> addFilterNum(String var1, String var2, String var3) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::addFilterNum([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::addFilterNum', {"var1": var1, "var2": var2, "var3": var3, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getFilterNumString() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getFilterNumString([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getFilterNumString', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSortingrules(com_amap_api_services_cloud_CloudSearch_Sortingrules var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::setSortingrules([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setSortingrules', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_cloud_CloudSearch_Sortingrules?> getSortingrules() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::getSortingrules([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getSortingrules', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Sortingrules>(__result__);
}
Future<bool?> queryEquals(com_amap_api_services_cloud_CloudSearch_Query var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::queryEquals([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::queryEquals', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_cloud_CloudSearch_Query?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.Query@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Query>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudSearch_Query{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudSearch_Query_Batch on List<com_amap_api_services_cloud_CloudSearch_Query?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getQueryString_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getQueryString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setTableID_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setTableID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTableID_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getTableID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getPageNum_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getPageNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPageNum_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setPageNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setPageSize_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getPageSize_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setBound_batch(List<com_amap_api_services_cloud_CloudSearch_SearchBound> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setBound_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_cloud_CloudSearch_SearchBound?>> getBound_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getBound_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__)).cast<com_amap_api_services_cloud_CloudSearch_SearchBound?>().toList();
}
Future<List<void>> addFilterString_batch(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::addFilterString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getFilterString_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getFilterString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> addFilterNum_batch(List<String> var1, List<String> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::addFilterNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getFilterNumString_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getFilterNumString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setSortingrules_batch(List<com_amap_api_services_cloud_CloudSearch_Sortingrules> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::setSortingrules_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_cloud_CloudSearch_Sortingrules?>> getSortingrules_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::getSortingrules_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Sortingrules>(__result__)).cast<com_amap_api_services_cloud_CloudSearch_Sortingrules?>().toList();
}
Future<List<bool?>> queryEquals_batch(List<com_amap_api_services_cloud_CloudSearch_Query> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::queryEquals_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<com_amap_api_services_cloud_CloudSearch_Query?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.Query::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Query>(__result__)).cast<com_amap_api_services_cloud_CloudSearch_Query?>().toList();
}
//endregion
}

View File

@ -0,0 +1,373 @@
// 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/android/android.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 com_amap_api_services_cloud_CloudSearch_SearchBound extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudSearch.SearchBound';
@override
final String tag__ = 'amap_search_fluttify';
static final String BOUND_SHAPE = "Bound";
static final String POLYGON_SHAPE = "Polygon";
static final String RECTANGLE_SHAPE = "Rectangle";
static final String LOCAL_SHAPE = "Local";
//endregion
//region creators
static Future<com_amap_api_services_cloud_CloudSearch_SearchBound> create__com_amap_api_services_core_LatLonPoint__int(com_amap_api_services_core_LatLonPoint var1, int var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch_SearchBound__com_amap_api_services_core_LatLonPoint__int',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__)!;
}
static Future<com_amap_api_services_cloud_CloudSearch_SearchBound> create__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint(com_amap_api_services_core_LatLonPoint var1, com_amap_api_services_core_LatLonPoint var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch_SearchBound__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__)!;
}
static Future<com_amap_api_services_cloud_CloudSearch_SearchBound> create__List_java_util_List_com_amap_api_services_core_LatLonPoint__(List<com_amap_api_services_core_LatLonPoint> var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch_SearchBound__java_util_List_com_amap_api_services_core_LatLonPoint_',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__)!;
}
static Future<com_amap_api_services_cloud_CloudSearch_SearchBound> create__String(String var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch_SearchBound__String',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__)!;
}
static Future<List<com_amap_api_services_cloud_CloudSearch_SearchBound>> create_batch__com_amap_api_services_core_LatLonPoint__int(List<com_amap_api_services_core_LatLonPoint> var1, List<int> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch_SearchBound__com_amap_api_services_core_LatLonPoint__int',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch_SearchBound>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch_SearchBound>[];
}
static Future<List<com_amap_api_services_cloud_CloudSearch_SearchBound>> create_batch__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint(List<com_amap_api_services_core_LatLonPoint> var1, List<com_amap_api_services_core_LatLonPoint> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch_SearchBound__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch_SearchBound>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch_SearchBound>[];
}
static Future<List<com_amap_api_services_cloud_CloudSearch_SearchBound>> create_batch__List_java_util_List_com_amap_api_services_core_LatLonPoint__(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch_SearchBound__java_util_List_com_amap_api_services_core_LatLonPoint_',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch_SearchBound>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch_SearchBound>[];
}
static Future<List<com_amap_api_services_cloud_CloudSearch_SearchBound>> create_batch__String(List<String> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch_SearchBound__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch_SearchBound>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch_SearchBound>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_core_LatLonPoint?> getLowerLeft() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::getLowerLeft([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getLowerLeft', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<com_amap_api_services_core_LatLonPoint?> getUpperRight() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::getUpperRight([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getUpperRight', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<com_amap_api_services_core_LatLonPoint?> getCenter() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::getCenter([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getCenter', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<int?> getRange() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::getRange([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getRange', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getShape() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::getShape([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getShape', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getCity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::getCity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getCity', {"__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyGonList() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::getPolyGonList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getPolyGonList', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<com_amap_api_services_cloud_CloudSearch_SearchBound?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.cloud.CloudSearch.SearchBound@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudSearch_SearchBound{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudSearch_SearchBound_Batch on List<com_amap_api_services_cloud_CloudSearch_SearchBound?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_core_LatLonPoint?>> getLowerLeft_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getLowerLeft_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getUpperRight_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getUpperRight_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getCenter_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getCenter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<int?>> getRange_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getRange_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> getShape_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getShape_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getCity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyGonList_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::getPolyGonList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<com_amap_api_services_cloud_CloudSearch_SearchBound?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.SearchBound::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_SearchBound>(__result__)).cast<com_amap_api_services_cloud_CloudSearch_SearchBound?>().toList();
}
//endregion
}

View File

@ -0,0 +1,107 @@
// 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/android/android.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 com_amap_api_services_cloud_CloudSearch_Sortingrules extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.cloud.CloudSearch.Sortingrules';
@override
final String tag__ = 'amap_search_fluttify';
static final int WEIGHT = 0;
static final int DISTANCE = 1;
//endregion
//region creators
static Future<com_amap_api_services_cloud_CloudSearch_Sortingrules> create__String__boolean(String var1, bool var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch_Sortingrules__String__boolean',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Sortingrules>(__result__)!;
}
static Future<com_amap_api_services_cloud_CloudSearch_Sortingrules> create__int(int var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_cloud_CloudSearch_Sortingrules__int',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Sortingrules>(__result__)!;
}
static Future<List<com_amap_api_services_cloud_CloudSearch_Sortingrules>> create_batch__String__boolean(List<String> var1, List<bool> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch_Sortingrules__String__boolean',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Sortingrules>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch_Sortingrules>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch_Sortingrules>[];
}
static Future<List<com_amap_api_services_cloud_CloudSearch_Sortingrules>> create_batch__int(List<int> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudSearch_Sortingrules__int',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_cloud_CloudSearch_Sortingrules>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_cloud_CloudSearch_Sortingrules>()
.toList() ?? <com_amap_api_services_cloud_CloudSearch_Sortingrules>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
@override
String toString() {
return 'com_amap_api_services_cloud_CloudSearch_Sortingrules{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_cloud_CloudSearch_Sortingrules_Batch on List<com_amap_api_services_cloud_CloudSearch_Sortingrules?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
//endregion
}

View File

@ -0,0 +1,372 @@
// 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/android/android.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 com_amap_api_services_core_AMapException extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.core.AMapException';
@override
final String tag__ = 'amap_search_fluttify';
static final int CODE_AMAP_SUCCESS = 1000;
static final String AMAP_SIGNATURE_ERROR = "用户签名未通过";
static final String AMAP_INVALID_USER_KEY = "用户key不正确或过期";
static final String AMAP_SERVICE_NOT_AVAILBALE = "请求服务不存在";
static final String AMAP_DAILY_QUERY_OVER_LIMIT = "访问已超出日访问量";
static final String AMAP_ACCESS_TOO_FREQUENT = "用户访问过于频繁";
static final String AMAP_INVALID_USER_IP = "用户IP无效";
static final String AMAP_INVALID_USER_DOMAIN = "用户域名无效";
static final String AMAP_INVALID_USER_SCODE = "用户MD5安全码未通过";
static final String AMAP_USERKEY_PLAT_NOMATCH = "请求key与绑定平台不符";
static final String AMAP_IP_QUERY_OVER_LIMIT = "IP访问超限";
static final String AMAP_NOT_SUPPORT_HTTPS = "服务不支持https请求";
static final String AMAP_INSUFFICIENT_PRIVILEGES = "权限不足,服务请求被拒绝";
static final String AMAP_USER_KEY_RECYCLED = "开发者删除了keykey被删除后无法正常使用";
static final String AMAP_ENGINE_RESPONSE_ERROR = "请求服务响应错误";
static final String AMAP_ENGINE_RESPONSE_DATA_ERROR = "引擎返回数据异常";
static final String AMAP_ENGINE_CONNECT_TIMEOUT = "服务端请求链接超时";
static final String AMAP_ENGINE_RETURN_TIMEOUT = "读取服务结果超时";
static final String AMAP_SERVICE_INVALID_PARAMS = "请求参数非法";
static final String AMAP_SERVICE_MISSING_REQUIRED_PARAMS = "缺少必填参数";
static final String AMAP_SERVICE_ILLEGAL_REQUEST = "请求协议非法";
static final String AMAP_SERVICE_UNKNOWN_ERROR = "其他未知错误";
static final String AMAP_CLIENT_ERROR_PROTOCOL = "协议解析错误 - ProtocolException";
static final String AMAP_CLIENT_SOCKET_TIMEOUT_EXCEPTION = "socket 连接超时 - SocketTimeoutException";
static final String AMAP_CLIENT_URL_EXCEPTION = "url异常 - MalformedURLException";
static final String AMAP_CLIENT_UNKNOWHOST_EXCEPTION = "未知主机 - UnKnowHostException";
static final String AMAP_CLIENT_NETWORK_EXCEPTION = "http或socket连接失败 - ConnectionException";
static final String AMAP_CLIENT_UNKNOWN_ERROR = "未知错误";
static final String AMAP_CLIENT_UNKNOWN_ERROR_TYPE = "CLIENT_UNKNOWN_ERROR";
static final String AMAP_CLIENT_INVALID_PARAMETER = "无效的参数 - IllegalArgumentException";
static final String AMAP_CLIENT_IO_EXCEPTION = "IO 操作异常 - IOException";
static final String AMAP_CLIENT_NULLPOINT_EXCEPTION = "空指针异常 - NullPointException";
static final String AMAP_CLIENT_ERRORCODE_MISSSING = "没有对应的错误";
static final String AMAP_CLIENT_ERRORCODE_MISSSING_TPPE = "AMAP_CLIENT_ERRORCODE_MISSSING";
static final String AMAP_SERVICE_TABLEID_NOT_EXIST = "tableID格式不正确不存在";
static final String AMAP_ID_NOT_EXIST = "ID不存在";
static final String AMAP_SERVICE_MAINTENANCE = "服务器维护中";
static final String AMAP_ENGINE_TABLEID_NOT_EXIST = "key对应的tableID不存在";
static final String AMAP_NEARBY_INVALID_USERID = "找不到对应的userid信息,请检查您提供的userid是否存在";
static final String AMAP_NEARBY_KEY_NOT_BIND = "App key未开通“附近”功能,请注册附近KEY";
static final String AMAP_CLIENT_UPLOADAUTO_STARTED_ERROR = "已开启自动上传";
static final String AMAP_CLIENT_USERID_ILLEGAL = "USERID非法";
static final String AMAP_CLIENT_NEARBY_NULL_RESULT = "NearbyInfo对象为空";
static final String AMAP_CLIENT_UPLOAD_TOO_FREQUENT = "两次单次上传的间隔低于7秒";
static final String AMAP_CLIENT_UPLOAD_LOCATION_ERROR = "Point为空或与前次上传的相同";
static final String AMAP_ROUTE_OUT_OF_SERVICE = "规划点(包括起点、终点、途经点)不在中国陆地范围内";
static final String AMAP_ROUTE_NO_ROADS_NEARBY = "规划点(起点、终点、途经点)附近搜不到路";
static final String AMAP_ROUTE_FAIL = "路线计算失败,通常是由于道路连通关系导致";
static final String AMAP_OVER_DIRECTION_RANGE = "起点终点距离过长";
static final String AMAP_SHARE_LICENSE_IS_EXPIRED = "短串分享认证失败";
static final String AMAP_CLIENT_OVER_PASSBY_MAX_COUNT_EXCEPTION = "途经点个数超限";
static final String AMAP_CLIENT_OVER_PASSAREA_MAX_COUNT_EXCEPTION = "避让区域个数超限";
static final String AMAP_CLIENT_OVER_PASSAREA_MAX_AREA_EXCEPTION = "避让区域大小超限";
static final String AMAP_CLIENT_OVER_PASSAREA_ITEM_POINT_COUNT_EXCEPTION = "避让区域点个数超限";
static final String AMAP_CLIENT_OVER_KEYWORD_LEN_MAX_COUNT_EXCEPTION = "关键字过长";
static final String AMAP_SHARE_FAILURE = "短串请求失败";
static final String AMAP_SHARE_SIGNATURE_FAILURE = "用户签名未通过";
static final int CODE_AMAP_SIGNATURE_ERROR = 1001;
static final int CODE_AMAP_INVALID_USER_KEY = 1002;
static final int CODE_AMAP_SERVICE_NOT_AVAILBALE = 1003;
static final int CODE_AMAP_DAILY_QUERY_OVER_LIMIT = 1004;
static final int CODE_AMAP_ACCESS_TOO_FREQUENT = 1005;
static final int CODE_AMAP_INVALID_USER_IP = 1006;
static final int CODE_AMAP_INVALID_USER_DOMAIN = 1007;
static final int CODE_AMAP_INVALID_USER_SCODE = 1008;
static final int CODE_AMAP_USERKEY_PLAT_NOMATCH = 1009;
static final int CODE_AMAP_IP_QUERY_OVER_LIMIT = 1010;
static final int CODE_AMAP_NOT_SUPPORT_HTTPS = 1011;
static final int CODE_AMAP_INSUFFICIENT_PRIVILEGES = 1012;
static final int CODE_AMAP_USER_KEY_RECYCLED = 1013;
static final int CODE_AMAP_ENGINE_RESPONSE_ERROR = 1100;
static final int CODE_AMAP_ENGINE_RESPONSE_DATA_ERROR = 1101;
static final int CODE_AMAP_ENGINE_CONNECT_TIMEOUT = 1102;
static final int CODE_AMAP_ENGINE_RETURN_TIMEOUT = 1103;
static final int CODE_AMAP_SERVICE_INVALID_PARAMS = 1200;
static final int CODE_AMAP_SERVICE_MISSING_REQUIRED_PARAMS = 1201;
static final int CODE_AMAP_SERVICE_ILLEGAL_REQUEST = 1202;
static final int CODE_AMAP_SERVICE_UNKNOWN_ERROR = 1203;
static final int CODE_AMAP_CLIENT_ERRORCODE_MISSSING = 1800;
static final int CODE_AMAP_CLIENT_ERROR_PROTOCOL = 1801;
static final int CODE_AMAP_CLIENT_SOCKET_TIMEOUT_EXCEPTION = 1802;
static final int CODE_AMAP_CLIENT_URL_EXCEPTION = 1803;
static final int CODE_AMAP_CLIENT_UNKNOWHOST_EXCEPTION = 1804;
static final int CODE_AMAP_CLIENT_NETWORK_EXCEPTION = 1806;
static final int CODE_AMAP_CLIENT_OVER_PASSBY_MAX_COUNT_EXCEPTION = 1809;
static final int CODE_AMAP_CLIENT_OVER_PASSAREA_MAX_COUNT_EXCEPTION = 1810;
static final int CODE_AMAP_CLIENT_OVER_PASSAREA_MAX_AREA_EXCEPTION = 1811;
static final int CODE_AMAP_CLIENT_OVER_PASSAREA_ITEM_POINT_COUNT_EXCEPTION = 1812;
static final int CODE_AMAP_CLIENT_OVER_KEYWORD_LEN_MAX_COUNT_EXCEPTION = 1813;
static final int CODE_AMAP_CLIENT_UNKNOWN_ERROR = 1900;
static final int CODE_AMAP_CLIENT_INVALID_PARAMETER = 1901;
static final int CODE_AMAP_CLIENT_IO_EXCEPTION = 1902;
static final int CODE_AMAP_CLIENT_NULLPOINT_EXCEPTION = 1903;
static final int CODE_AMAP_SERVICE_TABLEID_NOT_EXIST = 2000;
static final int CODE_AMAP_ID_NOT_EXIST = 2001;
static final int CODE_AMAP_SERVICE_MAINTENANCE = 2002;
static final int CODE_AMAP_ENGINE_TABLEID_NOT_EXIST = 2003;
static final int CODE_AMAP_NEARBY_INVALID_USERID = 2100;
static final int CODE_AMAP_NEARBY_KEY_NOT_BIND = 2101;
static final int CODE_AMAP_CLIENT_UPLOADAUTO_STARTED_ERROR = 2200;
static final int CODE_AMAP_CLIENT_USERID_ILLEGAL = 2201;
static final int CODE_AMAP_CLIENT_NEARBY_NULL_RESULT = 2202;
static final int CODE_AMAP_CLIENT_UPLOAD_TOO_FREQUENT = 2203;
static final int CODE_AMAP_CLIENT_UPLOAD_LOCATION_ERROR = 2204;
static final int CODE_AMAP_ROUTE_OUT_OF_SERVICE = 3000;
static final int CODE_AMAP_ROUTE_NO_ROADS_NEARBY = 3001;
static final int CODE_AMAP_ROUTE_FAIL = 3002;
static final int CODE_AMAP_OVER_DIRECTION_RANGE = 3003;
static final int CODE_AMAP_SHARE_LICENSE_IS_EXPIRED = 4000;
static final int CODE_AMAP_SHARE_FAILURE = 4001;
static final int CODE_AMAP_SHARE_SIGNATURE_FAILURE = 4002;
static final int AMAP_ERROR_REST = 2;
static final int AMAP_ERROR_CORE = 1;
static final int AMAP_ERROR_LOCAL = 0;
static final int AMAP_ERROR_LOCAL_STANDARDIZED = 4;
//endregion
//region creators
static Future<com_amap_api_services_core_AMapException> create__String(String var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_AMapException__String',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(__result__)!;
}
static Future<com_amap_api_services_core_AMapException> create__String__int__String(String var1, int var2, String var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_AMapException__String__int__String',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(__result__)!;
}
static Future<com_amap_api_services_core_AMapException> create__String__int__String__int(String var1, int var2, String var3, int var4) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_AMapException__String__int__String__int',
{"var1": var1, "var2": var2, "var3": var3, "var4": var4}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(__result__)!;
}
static Future<com_amap_api_services_core_AMapException> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_AMapException__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(__result__)!;
}
static Future<List<com_amap_api_services_core_AMapException>> create_batch__String(List<String> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_AMapException__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_AMapException>()
.toList() ?? <com_amap_api_services_core_AMapException>[];
}
static Future<List<com_amap_api_services_core_AMapException>> create_batch__String__int__String(List<String> var1, List<int> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_AMapException__String__int__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_AMapException>()
.toList() ?? <com_amap_api_services_core_AMapException>[];
}
static Future<List<com_amap_api_services_core_AMapException>> create_batch__String__int__String__int(List<String> var1, List<int> var2, List<String> var3, List<int> var4) async {
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_AMapException__String__int__String__int',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_AMapException>()
.toList() ?? <com_amap_api_services_core_AMapException>[];
}
static Future<List<com_amap_api_services_core_AMapException>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_AMapException__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_AMapException>()
.toList() ?? <com_amap_api_services_core_AMapException>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<int?> getErrorLevel() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.AMapException@$refId::getErrorLevel([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorLevel', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getErrorType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.AMapException@$refId::getErrorType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorType', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getErrorMessage() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.AMapException@$refId::getErrorMessage([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorMessage', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getErrorCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.AMapException@$refId::getErrorCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorCode', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_core_AMapException{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_core_AMapException_Batch on List<com_amap_api_services_core_AMapException?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<int?>> getErrorLevel_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> getErrorType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getErrorMessage_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorMessage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getErrorCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.AMapException::getErrorCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
}

View File

@ -0,0 +1,223 @@
// 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/android/android.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 com_amap_api_services_core_LatLonPoint extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.core.LatLonPoint';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_core_LatLonPoint> create__double__double(double var1, double var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_LatLonPoint__double__double',
{"var1": var1, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)!;
}
static Future<List<com_amap_api_services_core_LatLonPoint>> create_batch__double__double(List<double> var1, List<double> var3) async {
assert(var1.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_LatLonPoint__double__double',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_LatLonPoint>()
.toList() ?? <com_amap_api_services_core_LatLonPoint>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getLongitude() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.LatLonPoint@$refId::getLongitude([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::getLongitude', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setLongitude(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.LatLonPoint@$refId::setLongitude([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::setLongitude', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getLatitude() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.LatLonPoint@$refId::getLatitude([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::getLatitude', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setLatitude(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.LatLonPoint@$refId::setLatitude([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::setLatitude', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> copy() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.LatLonPoint@$refId::copy([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::copy', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_core_LatLonPoint{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_core_LatLonPoint_Batch on List<com_amap_api_services_core_LatLonPoint?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getLongitude_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::getLongitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setLongitude_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::setLongitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getLatitude_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::getLatitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setLatitude_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::setLatitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> copy_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonPoint::copy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
//endregion
}

View File

@ -0,0 +1,139 @@
// 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/android/android.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 com_amap_api_services_core_LatLonSharePoint extends com_amap_api_services_core_LatLonPoint with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.core.LatLonSharePoint';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_core_LatLonSharePoint> create__double__double__String(double var1, double var3, String var5) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_LatLonSharePoint__double__double__String',
{"var1": var1, "var3": var3, "var5": var5}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonSharePoint>(__result__)!;
}
static Future<List<com_amap_api_services_core_LatLonSharePoint>> create_batch__double__double__String(List<double> var1, List<double> var3, List<String> var5) async {
assert(var1.length == var3.length && var3.length == var5.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_LatLonSharePoint__double__double__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var3": var3[__i__], "var5": var5[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonSharePoint>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_LatLonSharePoint>()
.toList() ?? <com_amap_api_services_core_LatLonSharePoint>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getSharePointName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.LatLonSharePoint@$refId::getSharePointName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonSharePoint::getSharePointName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSharePointName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.LatLonSharePoint@$refId::setSharePointName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonSharePoint::setSharePointName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_core_LatLonSharePoint{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_core_LatLonSharePoint_Batch on List<com_amap_api_services_core_LatLonSharePoint?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getSharePointName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonSharePoint::getSharePointName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setSharePointName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.LatLonSharePoint::setSharePointName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,167 @@
// 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/android/android.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 com_amap_api_services_core_SearchUtils extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.core.SearchUtils';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_core_SearchUtils> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_SearchUtils__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SearchUtils>(__result__)!;
}
static Future<List<com_amap_api_services_core_SearchUtils>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_SearchUtils__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SearchUtils>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_SearchUtils>()
.toList() ?? <com_amap_api_services_core_SearchUtils>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<String?> getSHA1(android_content_Context var0) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SearchUtils::getSHA1([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SearchUtils::getSHA1', {"var0": var0});
// handle native call
return __result__;
}
static Future<String?> getPkgName(android_content_Context var0) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SearchUtils::getPkgName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SearchUtils::getPkgName', {"var0": var0});
// handle native call
return __result__;
}
static Future<String?> getVersion() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SearchUtils::getVersion([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SearchUtils::getVersion', );
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_core_SearchUtils{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_core_SearchUtils_Batch on List<com_amap_api_services_core_SearchUtils?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<List<String?>> getSHA1_batch(List<android_content_Context> var0) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SearchUtils::getSHA1_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
static Future<List<String?>> getPkgName_batch(List<android_content_Context> var0) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SearchUtils::getPkgName_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
static Future<List<String?>> getVersion_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SearchUtils::getVersion_batch', );
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
//endregion
}

View File

@ -0,0 +1,430 @@
// 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/android/android.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 com_amap_api_services_core_ServiceSettings extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.core.ServiceSettings';
@override
final String tag__ = 'amap_search_fluttify';
static final String ENGLISH = "en";
static final String CHINESE = "zh-CN";
static final int HTTP = 1;
static final int HTTPS = 2;
//endregion
//region creators
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<int?> getConnectionTimeOut() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::getConnectionTimeOut([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getConnectionTimeOut', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getSoTimeOut() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::getSoTimeOut([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getSoTimeOut', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setConnectionTimeOut(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::setConnectionTimeOut([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setConnectionTimeOut', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setSoTimeOut(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::setSoTimeOut([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setSoTimeOut', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
static Future<com_amap_api_services_core_ServiceSettings?> getInstance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings::getInstance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getInstance', );
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_ServiceSettings>(__result__);
}
Future<void> setLanguage(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::setLanguage([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setLanguage', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setProtocol(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::setProtocol([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setProtocol', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getLanguage() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::getLanguage([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getLanguage', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getProtocol() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::getProtocol([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getProtocol', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setApiKey(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::setApiKey([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setApiKey', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> destroyInnerAsynThreadPool() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings@$refId::destroyInnerAsynThreadPool([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::destroyInnerAsynThreadPool', {"__this__": this});
// handle native call
return __result__;
}
static Future<void> updatePrivacyShow(android_content_Context var0, bool var1, bool var2) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings::updatePrivacyShow([\'var1\':$var1, \'var2\':$var2])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::updatePrivacyShow', {"var0": var0, "var1": var1, "var2": var2});
// handle native call
return __result__;
}
static Future<void> updatePrivacyAgree(android_content_Context var0, bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.ServiceSettings::updatePrivacyAgree([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::updatePrivacyAgree', {"var0": var0, "var1": var1});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_core_ServiceSettings{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_core_ServiceSettings_Batch on List<com_amap_api_services_core_ServiceSettings?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<int?>> getConnectionTimeOut_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getConnectionTimeOut_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> getSoTimeOut_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getSoTimeOut_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setConnectionTimeOut_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setConnectionTimeOut_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setSoTimeOut_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setSoTimeOut_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
static Future<List<com_amap_api_services_core_ServiceSettings?>> getInstance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getInstance_batch', );
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_ServiceSettings>(__result__)).cast<com_amap_api_services_core_ServiceSettings?>().toList();
}
Future<List<void>> setLanguage_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setLanguage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setProtocol_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setProtocol_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getLanguage_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getLanguage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getProtocol_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::getProtocol_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setApiKey_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::setApiKey_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> destroyInnerAsynThreadPool_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::destroyInnerAsynThreadPool_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
static Future<List<void>> updatePrivacyShow_batch(List<android_content_Context> var0, List<bool> var1, List<bool> var2) async {
assert(var0.length == var1.length && var1.length == var2.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::updatePrivacyShow_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__], "var2": var2[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
static Future<List<void>> updatePrivacyAgree_batch(List<android_content_Context> var0, List<bool> var1) async {
assert(var0.length == var1.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.ServiceSettings::updatePrivacyAgree_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,307 @@
// 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/android/android.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 com_amap_api_services_core_SuggestionCity extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.core.SuggestionCity';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_core_SuggestionCity> create__String__String__String__int(String var1, String var2, String var3, int var4) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_core_SuggestionCity__String__String__String__int',
{"var1": var1, "var2": var2, "var3": var3, "var4": var4}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(__result__)!;
}
static Future<List<com_amap_api_services_core_SuggestionCity>> create_batch__String__String__String__int(List<String> var1, List<String> var2, List<String> var3, List<int> var4) async {
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_core_SuggestionCity__String__String__String__int',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_core_SuggestionCity>()
.toList() ?? <com_amap_api_services_core_SuggestionCity>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getCityName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::getCityName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getCityName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCityName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::setCityName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setCityName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCityCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::getCityCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getCityCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCityCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::setCityCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setCityCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAdCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::getAdCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getAdCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAdCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::setAdCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setAdCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getSuggestionNum() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::getSuggestionNum([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getSuggestionNum', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSuggestionNum(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.core.SuggestionCity@$refId::setSuggestionNum([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setSuggestionNum', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_core_SuggestionCity{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_core_SuggestionCity_Batch on List<com_amap_api_services_core_SuggestionCity?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getCityName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getCityName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCityName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setCityName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCityCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCityCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAdCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getAdCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAdCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setAdCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getSuggestionNum_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::getSuggestionNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setSuggestionNum_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.core.SuggestionCity::setSuggestionNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,496 @@
// 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/android/android.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 com_amap_api_services_district_DistrictItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.district.DistrictItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_district_DistrictItem> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictItem__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(__result__)!;
}
static Future<com_amap_api_services_district_DistrictItem> create__String__String__String__com_amap_api_services_core_LatLonPoint__String(String var1, String var2, String var3, com_amap_api_services_core_LatLonPoint var4, String var5) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictItem__String__String__String__com_amap_api_services_core_LatLonPoint__String',
{"var1": var1, "var2": var2, "var3": var3, "var4": var4, "var5": var5}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(__result__)!;
}
static Future<List<com_amap_api_services_district_DistrictItem>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictItem__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictItem>()
.toList() ?? <com_amap_api_services_district_DistrictItem>[];
}
static Future<List<com_amap_api_services_district_DistrictItem>> create_batch__String__String__String__com_amap_api_services_core_LatLonPoint__String(List<String> var1, List<String> var2, List<String> var3, List<com_amap_api_services_core_LatLonPoint> var4, List<String> var5) async {
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length && var4.length == var5.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictItem__String__String__String__com_amap_api_services_core_LatLonPoint__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "var5": var5[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictItem>()
.toList() ?? <com_amap_api_services_district_DistrictItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setDistrictBoundary(List<String> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::setDistrictBoundary([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setDistrictBoundary', {"var1": Array.ofList(var1), "__this__": this});
// handle native call
return __result__;
}
Future<List<String>?> districtBoundary() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::districtBoundary([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::districtBoundary', {"__this__": this});
// handle native call
return (__result__ as List?)?.cast<String>();
}
Future<String?> getCitycode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::getCitycode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getCitycode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCitycode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::setCitycode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setCitycode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAdcode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::getAdcode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getAdcode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAdcode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::setAdcode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setAdcode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getCenter() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::getCenter([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getCenter', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setCenter(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::setCenter([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setCenter', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getLevel() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::getLevel([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getLevel', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setLevel(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::setLevel([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setLevel', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_district_DistrictItem>?> getSubDistrict() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::getSubDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getSubDistrict', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(it)).where((e) => e != null).cast<com_amap_api_services_district_DistrictItem>().toList();
}
Future<void> setSubDistrict(List<com_amap_api_services_district_DistrictItem> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictItem@$refId::setSubDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setSubDistrict', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_district_DistrictItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_district_DistrictItem_Batch on List<com_amap_api_services_district_DistrictItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setDistrictBoundary_batch(List<List<String>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setDistrictBoundary_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<String>?>> districtBoundary_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::districtBoundary_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<String>()).cast<List<String>?>().toList();
}
Future<List<String?>> getCitycode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getCitycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCitycode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setCitycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAdcode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAdcode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getCenter_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getCenter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setCenter_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setCenter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getLevel_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setLevel_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_district_DistrictItem>?>> getSubDistrict_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::getSubDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(it)).where((e) => e != null).cast<com_amap_api_services_district_DistrictItem>().toList()).cast<List<com_amap_api_services_district_DistrictItem>?>().toList();
}
Future<List<void>> setSubDistrict_batch(List<List<com_amap_api_services_district_DistrictItem>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictItem::setSubDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,328 @@
// 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/android/android.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 com_amap_api_services_district_DistrictResult extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.district.DistrictResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_district_DistrictResult> create__com_amap_api_services_district_DistrictSearchQuery__List_java_util_ArrayList_com_amap_api_services_district_DistrictItem__(com_amap_api_services_district_DistrictSearchQuery var1, List<com_amap_api_services_district_DistrictItem> var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictResult__com_amap_api_services_district_DistrictSearchQuery__java_util_ArrayList_com_amap_api_services_district_DistrictItem_',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictResult>(__result__)!;
}
static Future<com_amap_api_services_district_DistrictResult> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictResult__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictResult>(__result__)!;
}
static Future<List<com_amap_api_services_district_DistrictResult>> create_batch__com_amap_api_services_district_DistrictSearchQuery__List_java_util_ArrayList_com_amap_api_services_district_DistrictItem__(List<com_amap_api_services_district_DistrictSearchQuery> var1, List<List<com_amap_api_services_district_DistrictItem>> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictResult__com_amap_api_services_district_DistrictSearchQuery__java_util_ArrayList_com_amap_api_services_district_DistrictItem_',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictResult>()
.toList() ?? <com_amap_api_services_district_DistrictResult>[];
}
static Future<List<com_amap_api_services_district_DistrictResult>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictResult__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictResult>()
.toList() ?? <com_amap_api_services_district_DistrictResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_district_DistrictItem>?> getDistrict() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::getDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getDistrict', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(it)).where((e) => e != null).cast<com_amap_api_services_district_DistrictItem>().toList();
}
Future<void> setDistrict(List<com_amap_api_services_district_DistrictItem> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::setDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setDistrict', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_district_DistrictSearchQuery?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__);
}
Future<void> setQuery(com_amap_api_services_district_DistrictSearchQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::setQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageCount() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::getPageCount([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getPageCount', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPageCount(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::setPageCount([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setPageCount', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_AMapException?> getAMapException() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::getAMapException([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getAMapException', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(__result__);
}
Future<void> setAMapException(com_amap_api_services_core_AMapException var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictResult@$refId::setAMapException([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setAMapException', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_district_DistrictResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_district_DistrictResult_Batch on List<com_amap_api_services_district_DistrictResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<List<com_amap_api_services_district_DistrictItem>?>> getDistrict_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictItem>(it)).where((e) => e != null).cast<com_amap_api_services_district_DistrictItem>().toList()).cast<List<com_amap_api_services_district_DistrictItem>?>().toList();
}
Future<List<void>> setDistrict_batch(List<List<com_amap_api_services_district_DistrictItem>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_district_DistrictSearchQuery?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__)).cast<com_amap_api_services_district_DistrictSearchQuery?>().toList();
}
Future<List<void>> setQuery_batch(List<com_amap_api_services_district_DistrictSearchQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getPageCount_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getPageCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPageCount_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setPageCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_AMapException?>> getAMapException_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::getAMapException_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_AMapException>(__result__)).cast<com_amap_api_services_core_AMapException?>().toList();
}
Future<List<void>> setAMapException_batch(List<com_amap_api_services_core_AMapException> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictResult::setAMapException_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,240 @@
// 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/android/android.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 com_amap_api_services_district_DistrictSearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.district.DistrictSearch';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_district_DistrictSearch> create__android_content_Context(android_content_Context var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictSearch__android_content_Context',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearch>(__result__)!;
}
static Future<List<com_amap_api_services_district_DistrictSearch>> create_batch__android_content_Context(List<android_content_Context> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictSearch__android_content_Context',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearch>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictSearch>()
.toList() ?? <com_amap_api_services_district_DistrictSearch>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_district_DistrictSearchQuery?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearch@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__);
}
Future<void> setQuery(com_amap_api_services_district_DistrictSearchQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearch@$refId::setQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::setQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_district_DistrictResult?> searchDistrict() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearch@$refId::searchDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::searchDistrict', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictResult>(__result__);
}
Future<void> searchDistrictAsyn() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearch@$refId::searchDistrictAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::searchDistrictAsyn', {"__this__": this});
// handle native call
return __result__;
}
Future<void> searchDistrictAnsy() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearch@$refId::searchDistrictAnsy([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::searchDistrictAnsy', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setOnDistrictSearchListener(com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearch@$refId::setOnDistrictSearchListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::setOnDistrictSearchListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_district_DistrictSearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_district_DistrictSearch_Batch on List<com_amap_api_services_district_DistrictSearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_district_DistrictSearchQuery?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__)).cast<com_amap_api_services_district_DistrictSearchQuery?>().toList();
}
Future<List<void>> setQuery_batch(List<com_amap_api_services_district_DistrictSearchQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::setQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_district_DistrictResult?>> searchDistrict_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::searchDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictResult>(__result__)).cast<com_amap_api_services_district_DistrictResult?>().toList();
}
Future<List<void>> searchDistrictAsyn_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::searchDistrictAsyn_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>> searchDistrictAnsy_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch::searchDistrictAnsy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,67 @@
// 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/android/android.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 _com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener_SUB extends java_lang_Object with com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener {}
mixin com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener on java_lang_Object {
static com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener subInstance() => _com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener_SUB();
static Future<com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch.OnDistrictSearchListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.district.DistrictSearch.OnDistrictSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onDistrictSearched':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onDistrictSearched?.call([\'var1\':${args['var1']}])');
}
// handle the native call
__object__.onDistrictSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictResult>(args['var1']));
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(com_amap_api_services_district_DistrictResult? var1)? onDistrictSearched;
}

View File

@ -0,0 +1,689 @@
// 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/android/android.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 com_amap_api_services_district_DistrictSearchQuery extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.district.DistrictSearchQuery';
@override
final String tag__ = 'amap_search_fluttify';
static final String KEYWORDS_COUNTRY = "country";
static final String KEYWORDS_PROVINCE = "province";
static final String KEYWORDS_CITY = "city";
static final String KEYWORDS_DISTRICT = "district";
static final String KEYWORDS_BUSINESS = "biz_area";
//endregion
//region creators
static Future<com_amap_api_services_district_DistrictSearchQuery> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictSearchQuery__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__)!;
}
static Future<com_amap_api_services_district_DistrictSearchQuery> create__String__String__int(String var1, String var2, int var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictSearchQuery__String__String__int',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__)!;
}
static Future<com_amap_api_services_district_DistrictSearchQuery> create__String__String__int__boolean__int(String var1, String var2, int var3, bool var4, int var5) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_district_DistrictSearchQuery__String__String__int__boolean__int',
{"var1": var1, "var2": var2, "var3": var3, "var4": var4, "var5": var5}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__)!;
}
static Future<List<com_amap_api_services_district_DistrictSearchQuery>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictSearchQuery__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictSearchQuery>()
.toList() ?? <com_amap_api_services_district_DistrictSearchQuery>[];
}
static Future<List<com_amap_api_services_district_DistrictSearchQuery>> create_batch__String__String__int(List<String> var1, List<String> var2, List<int> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictSearchQuery__String__String__int',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictSearchQuery>()
.toList() ?? <com_amap_api_services_district_DistrictSearchQuery>[];
}
static Future<List<com_amap_api_services_district_DistrictSearchQuery>> create_batch__String__String__int__boolean__int(List<String> var1, List<String> var2, List<int> var3, List<bool> var4, List<int> var5) async {
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length && var4.length == var5.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_district_DistrictSearchQuery__String__String__int__boolean__int',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "var5": var5[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_district_DistrictSearchQuery>()
.toList() ?? <com_amap_api_services_district_DistrictSearchQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setShowBoundary(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setShowBoundary([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setShowBoundary', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> isShowBoundary() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::isShowBoundary([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::isShowBoundary', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageNum() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::getPageNum([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getPageNum', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPageNum(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setPageNum([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setPageNum', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageSize() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::getPageSize([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getPageSize', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPageSize(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setPageSize([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setPageSize', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getKeywords() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::getKeywords([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getKeywords', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setKeywords(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setKeywords([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setKeywords', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getKeywordsLevel() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::getKeywordsLevel([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getKeywordsLevel', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setKeywordsLevel(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setKeywordsLevel([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setKeywordsLevel', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> isShowChild() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::isShowChild([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::isShowChild', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setShowChild(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setShowChild([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setShowChild', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getSubDistrict() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::getSubDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getSubDistrict', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSubDistrict(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setSubDistrict([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setSubDistrict', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> isShowBusinessArea() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::isShowBusinessArea([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::isShowBusinessArea', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setShowBusinessArea(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::setShowBusinessArea([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setShowBusinessArea', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> checkLevels() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::checkLevels([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::checkLevels', {"__this__": this});
// handle native call
return __result__;
}
Future<bool?> checkKeyWords() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::checkKeyWords([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::checkKeyWords', {"__this__": this});
// handle native call
return __result__;
}
Future<bool?> weakEquals(com_amap_api_services_district_DistrictSearchQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::weakEquals([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::weakEquals', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_district_DistrictSearchQuery?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.district.DistrictSearchQuery@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_district_DistrictSearchQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_district_DistrictSearchQuery_Batch on List<com_amap_api_services_district_DistrictSearchQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setShowBoundary_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setShowBoundary_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> isShowBoundary_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::isShowBoundary_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<int?>> getPageNum_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getPageNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPageNum_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setPageNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getPageSize_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPageSize_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getKeywords_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getKeywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setKeywords_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setKeywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getKeywordsLevel_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getKeywordsLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setKeywordsLevel_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setKeywordsLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> isShowChild_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::isShowChild_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> setShowChild_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setShowChild_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getSubDistrict_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::getSubDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setSubDistrict_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setSubDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> isShowBusinessArea_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::isShowBusinessArea_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> setShowBusinessArea_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::setShowBusinessArea_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> checkLevels_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::checkLevels_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> checkKeyWords_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::checkKeyWords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> weakEquals_batch(List<com_amap_api_services_district_DistrictSearchQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::weakEquals_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<com_amap_api_services_district_DistrictSearchQuery?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearchQuery::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_district_DistrictSearchQuery>(__result__)).cast<com_amap_api_services_district_DistrictSearchQuery?>().toList();
}
//endregion
}

View File

@ -0,0 +1,363 @@
// 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/android/android.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 com_amap_api_services_geocoder_AoiItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.AoiItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_AoiItem> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_AoiItem__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_AoiItem>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_AoiItem>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_AoiItem__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_AoiItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_AoiItem>()
.toList() ?? <com_amap_api_services_geocoder_AoiItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getAoiId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::getAoiId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiId', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getAoiName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::getAoiName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiName', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getAdCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::getAdCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAdCode', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getAoiCenterPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::getAoiCenterPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiCenterPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<double?> getAoiArea() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::getAoiArea([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiArea', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::setId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setAdcode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::setAdcode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setAdcode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setLocation(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::setLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setLocation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setArea(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.AoiItem@$refId::setArea([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setArea', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_AoiItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_AoiItem_Batch on List<com_amap_api_services_geocoder_AoiItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getAoiId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getAoiName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getAdCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAdCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getAoiCenterPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiCenterPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<double?>> getAoiArea_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::getAoiArea_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setAdcode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setLocation_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setArea_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.AoiItem::setArea_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_geocoder_BusinessArea extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.BusinessArea';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_BusinessArea> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_BusinessArea__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_BusinessArea>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_BusinessArea>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_BusinessArea__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_BusinessArea>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_BusinessArea>()
.toList() ?? <com_amap_api_services_geocoder_BusinessArea>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_core_LatLonPoint?> getCenterPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.BusinessArea@$refId::getCenterPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::getCenterPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setCenterPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.BusinessArea@$refId::setCenterPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::setCenterPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.BusinessArea@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.BusinessArea@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_BusinessArea{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_BusinessArea_Batch on List<com_amap_api_services_geocoder_BusinessArea?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_core_LatLonPoint?>> getCenterPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::getCenterPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setCenterPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::setCenterPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.BusinessArea::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,755 @@
// 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/android/android.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 com_amap_api_services_geocoder_GeocodeAddress extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.GeocodeAddress';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_GeocodeAddress> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_GeocodeAddress__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeAddress>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_GeocodeAddress>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_GeocodeAddress__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeAddress>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_GeocodeAddress>()
.toList() ?? <com_amap_api_services_geocoder_GeocodeAddress>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getFormatAddress() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getFormatAddress([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getFormatAddress', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setFormatAddress(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setFormatAddress([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setFormatAddress', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getProvince() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getProvince([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getProvince', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setProvince(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setProvince([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setProvince', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getCity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getCity', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCity(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setCity([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setCity', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getDistrict() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getDistrict', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistrict(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setDistrict([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setDistrict', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTownship() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getTownship([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getTownship', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTownship(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setTownship([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setTownship', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getNeighborhood() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getNeighborhood([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getNeighborhood', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setNeighborhood(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setNeighborhood([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setNeighborhood', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getBuilding() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getBuilding([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getBuilding', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBuilding(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setBuilding([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setBuilding', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAdcode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getAdcode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getAdcode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAdcode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setAdcode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setAdcode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLatLonPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getLatLonPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setLatLonPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setLatLonPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getLevel() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getLevel([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getLevel', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setLevel(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setLevel([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setLevel', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCountry() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getCountry([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getCountry', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCountry(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setCountry([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setCountry', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getPostcode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::getPostcode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getPostcode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPostcode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeAddress@$refId::setPostcode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setPostcode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_GeocodeAddress{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_GeocodeAddress_Batch on List<com_amap_api_services_geocoder_GeocodeAddress?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getFormatAddress_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getFormatAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setFormatAddress_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setFormatAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getProvince_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getProvince_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setProvince_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setProvince_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCity_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getDistrict_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setDistrict_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTownship_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getTownship_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setTownship_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setTownship_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getNeighborhood_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getNeighborhood_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setNeighborhood_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setNeighborhood_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getBuilding_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getBuilding_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBuilding_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setBuilding_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAdcode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAdcode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLatLonPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setLatLonPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getLevel_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setLevel_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setLevel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCountry_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getCountry_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCountry_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setCountry_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getPostcode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::getPostcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setPostcode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeAddress::setPostcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_geocoder_GeocodeQuery extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.GeocodeQuery';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_GeocodeQuery> create__String__String(String var1, String var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_GeocodeQuery__String__String',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeQuery>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_GeocodeQuery>> create_batch__String__String(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_GeocodeQuery__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_GeocodeQuery>()
.toList() ?? <com_amap_api_services_geocoder_GeocodeQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getLocationName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeQuery@$refId::getLocationName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::getLocationName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setLocationName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeQuery@$refId::setLocationName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::setLocationName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeQuery@$refId::getCity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::getCity', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCity(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeQuery@$refId::setCity([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::setCity', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCountry() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeQuery@$refId::getCountry([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::getCountry', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCountry(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeQuery@$refId::setCountry([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::setCountry', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_GeocodeQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_GeocodeQuery_Batch on List<com_amap_api_services_geocoder_GeocodeQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getLocationName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::getLocationName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setLocationName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::setLocationName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCity_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::setCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCountry_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::getCountry_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCountry_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeQuery::setCountry_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_geocoder_GeocodeResult extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.GeocodeResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_GeocodeResult> create__com_amap_api_services_geocoder_GeocodeQuery__List_java_util_List_com_amap_api_services_geocoder_GeocodeAddress__(com_amap_api_services_geocoder_GeocodeQuery var1, List<com_amap_api_services_geocoder_GeocodeAddress> var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_GeocodeResult__com_amap_api_services_geocoder_GeocodeQuery__java_util_List_com_amap_api_services_geocoder_GeocodeAddress_',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeResult>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_GeocodeResult>> create_batch__com_amap_api_services_geocoder_GeocodeQuery__List_java_util_List_com_amap_api_services_geocoder_GeocodeAddress__(List<com_amap_api_services_geocoder_GeocodeQuery> var1, List<List<com_amap_api_services_geocoder_GeocodeAddress>> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_GeocodeResult__com_amap_api_services_geocoder_GeocodeQuery__java_util_List_com_amap_api_services_geocoder_GeocodeAddress_',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_GeocodeResult>()
.toList() ?? <com_amap_api_services_geocoder_GeocodeResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_geocoder_GeocodeQuery?> getGeocodeQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeResult@$refId::getGeocodeQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::getGeocodeQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeQuery>(__result__);
}
Future<void> setGeocodeQuery(com_amap_api_services_geocoder_GeocodeQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeResult@$refId::setGeocodeQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::setGeocodeQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_geocoder_GeocodeAddress>?> getGeocodeAddressList() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeResult@$refId::getGeocodeAddressList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::getGeocodeAddressList', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeAddress>(it)).where((e) => e != null).cast<com_amap_api_services_geocoder_GeocodeAddress>().toList();
}
Future<void> setGeocodeAddressList(List<com_amap_api_services_geocoder_GeocodeAddress> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeResult@$refId::setGeocodeAddressList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::setGeocodeAddressList', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_GeocodeResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_GeocodeResult_Batch on List<com_amap_api_services_geocoder_GeocodeResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_geocoder_GeocodeQuery?>> getGeocodeQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::getGeocodeQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeQuery>(__result__)).cast<com_amap_api_services_geocoder_GeocodeQuery?>().toList();
}
Future<List<void>> setGeocodeQuery_batch(List<com_amap_api_services_geocoder_GeocodeQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::setGeocodeQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_geocoder_GeocodeAddress>?>> getGeocodeAddressList_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::getGeocodeAddressList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeAddress>(it)).where((e) => e != null).cast<com_amap_api_services_geocoder_GeocodeAddress>().toList()).cast<List<com_amap_api_services_geocoder_GeocodeAddress>?>().toList();
}
Future<List<void>> setGeocodeAddressList_batch(List<List<com_amap_api_services_geocoder_GeocodeAddress>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeResult::setGeocodeAddressList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,215 @@
// 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/android/android.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 com_amap_api_services_geocoder_GeocodeSearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.GeocodeSearch';
@override
final String tag__ = 'amap_search_fluttify';
static final String GPS = "gps";
static final String AMAP = "autonavi";
static final String EXTENSIONS_ALL = "all";
static final String EXTENSIONS_BASE = "base";
//endregion
//region creators
static Future<com_amap_api_services_geocoder_GeocodeSearch> create__android_content_Context(android_content_Context var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_GeocodeSearch__android_content_Context',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeSearch>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_GeocodeSearch>> create_batch__android_content_Context(List<android_content_Context> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_GeocodeSearch__android_content_Context',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeSearch>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_GeocodeSearch>()
.toList() ?? <com_amap_api_services_geocoder_GeocodeSearch>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_geocoder_RegeocodeAddress?> getFromLocation(com_amap_api_services_geocoder_RegeocodeQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeSearch@$refId::getFromLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocation', {"var1": var1, "__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeAddress>(__result__);
}
Future<List<com_amap_api_services_geocoder_GeocodeAddress>?> getFromLocationName(com_amap_api_services_geocoder_GeocodeQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeSearch@$refId::getFromLocationName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocationName', {"var1": var1, "__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeAddress>(it)).where((e) => e != null).cast<com_amap_api_services_geocoder_GeocodeAddress>().toList();
}
Future<void> setOnGeocodeSearchListener(com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeSearch@$refId::setOnGeocodeSearchListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::setOnGeocodeSearchListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> getFromLocationAsyn(com_amap_api_services_geocoder_RegeocodeQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeSearch@$refId::getFromLocationAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocationAsyn', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> getFromLocationNameAsyn(com_amap_api_services_geocoder_GeocodeQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeSearch@$refId::getFromLocationNameAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocationNameAsyn', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_GeocodeSearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_GeocodeSearch_Batch on List<com_amap_api_services_geocoder_GeocodeSearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_geocoder_RegeocodeAddress?>> getFromLocation_batch(List<com_amap_api_services_geocoder_RegeocodeQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeAddress>(__result__)).cast<com_amap_api_services_geocoder_RegeocodeAddress?>().toList();
}
Future<List<List<com_amap_api_services_geocoder_GeocodeAddress>?>> getFromLocationName_batch(List<com_amap_api_services_geocoder_GeocodeQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocationName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeAddress>(it)).where((e) => e != null).cast<com_amap_api_services_geocoder_GeocodeAddress>().toList()).cast<List<com_amap_api_services_geocoder_GeocodeAddress>?>().toList();
}
Future<List<void>> getFromLocationAsyn_batch(List<com_amap_api_services_geocoder_RegeocodeQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocationAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> getFromLocationNameAsyn_batch(List<com_amap_api_services_geocoder_GeocodeQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocationNameAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,78 @@
// 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/android/android.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 _com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener_SUB extends java_lang_Object with com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener {}
mixin com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener on java_lang_Object {
static com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener subInstance() => _com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener_SUB();
static Future<com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch.OnGeocodeSearchListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.geocoder.GeocodeSearch.OnGeocodeSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onRegeocodeSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onRegeocodeSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onRegeocodeSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeResult>(args['var1']), args['var2']);
break;
case 'onGeocodeSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onGeocodeSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onGeocodeSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeResult>(args['var1']), args['var2']);
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(com_amap_api_services_geocoder_RegeocodeResult? var1, int? var2)? onRegeocodeSearched;
Future<void> Function(com_amap_api_services_geocoder_GeocodeResult? var1, int? var2)? onGeocodeSearched;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,419 @@
// 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/android/android.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 com_amap_api_services_geocoder_RegeocodeQuery extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.RegeocodeQuery';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_RegeocodeQuery> create__com_amap_api_services_core_LatLonPoint__float__String(com_amap_api_services_core_LatLonPoint var1, double var2, String var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_RegeocodeQuery__com_amap_api_services_core_LatLonPoint__float__String',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeQuery>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_RegeocodeQuery>> create_batch__com_amap_api_services_core_LatLonPoint__float__String(List<com_amap_api_services_core_LatLonPoint> var1, List<double> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_RegeocodeQuery__com_amap_api_services_core_LatLonPoint__float__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_RegeocodeQuery>()
.toList() ?? <com_amap_api_services_geocoder_RegeocodeQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_core_LatLonPoint?> getPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::getPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::setPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getRadius() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::getRadius([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getRadius', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRadius(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::setRadius([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setRadius', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getLatLonType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::getLatLonType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getLatLonType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setLatLonType(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::setLatLonType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setLatLonType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getPoiType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::getPoiType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getPoiType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPoiType(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::setPoiType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setPoiType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getMode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::getMode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getMode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setMode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::setMode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setMode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getExtensions() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::getExtensions([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getExtensions', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setExtensions(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeQuery@$refId::setExtensions([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setExtensions', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_RegeocodeQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_RegeocodeQuery_Batch on List<com_amap_api_services_geocoder_RegeocodeQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_core_LatLonPoint?>> getPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getRadius_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getRadius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setRadius_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setRadius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getLatLonType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getLatLonType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setLatLonType_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setLatLonType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getPoiType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getPoiType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setPoiType_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setPoiType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getMode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setMode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getExtensions_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::getExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setExtensions_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeQuery::setExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_geocoder_RegeocodeResult extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.RegeocodeResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_RegeocodeResult> create__com_amap_api_services_geocoder_RegeocodeQuery__com_amap_api_services_geocoder_RegeocodeAddress(com_amap_api_services_geocoder_RegeocodeQuery var1, com_amap_api_services_geocoder_RegeocodeAddress var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_RegeocodeResult__com_amap_api_services_geocoder_RegeocodeQuery__com_amap_api_services_geocoder_RegeocodeAddress',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeResult>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_RegeocodeResult>> create_batch__com_amap_api_services_geocoder_RegeocodeQuery__com_amap_api_services_geocoder_RegeocodeAddress(List<com_amap_api_services_geocoder_RegeocodeQuery> var1, List<com_amap_api_services_geocoder_RegeocodeAddress> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_RegeocodeResult__com_amap_api_services_geocoder_RegeocodeQuery__com_amap_api_services_geocoder_RegeocodeAddress',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_RegeocodeResult>()
.toList() ?? <com_amap_api_services_geocoder_RegeocodeResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_geocoder_RegeocodeQuery?> getRegeocodeQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeResult@$refId::getRegeocodeQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::getRegeocodeQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeQuery>(__result__);
}
Future<void> setRegeocodeQuery(com_amap_api_services_geocoder_RegeocodeQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeResult@$refId::setRegeocodeQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::setRegeocodeQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_geocoder_RegeocodeAddress?> getRegeocodeAddress() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeResult@$refId::getRegeocodeAddress([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::getRegeocodeAddress', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeAddress>(__result__);
}
Future<void> setRegeocodeAddress(com_amap_api_services_geocoder_RegeocodeAddress var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeResult@$refId::setRegeocodeAddress([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::setRegeocodeAddress', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_RegeocodeResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_RegeocodeResult_Batch on List<com_amap_api_services_geocoder_RegeocodeResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_geocoder_RegeocodeQuery?>> getRegeocodeQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::getRegeocodeQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeQuery>(__result__)).cast<com_amap_api_services_geocoder_RegeocodeQuery?>().toList();
}
Future<List<void>> setRegeocodeQuery_batch(List<com_amap_api_services_geocoder_RegeocodeQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::setRegeocodeQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_geocoder_RegeocodeAddress?>> getRegeocodeAddress_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::getRegeocodeAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeAddress>(__result__)).cast<com_amap_api_services_geocoder_RegeocodeAddress?>().toList();
}
Future<List<void>> setRegeocodeAddress_batch(List<com_amap_api_services_geocoder_RegeocodeAddress> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeResult::setRegeocodeAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,363 @@
// 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/android/android.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 com_amap_api_services_geocoder_RegeocodeRoad extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.RegeocodeRoad';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_RegeocodeRoad> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_RegeocodeRoad__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeRoad>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_RegeocodeRoad>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_RegeocodeRoad__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_RegeocodeRoad>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_RegeocodeRoad>()
.toList() ?? <com_amap_api_services_geocoder_RegeocodeRoad>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::getId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::setId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getDirection() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::getDirection([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getDirection', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDirection(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::setDirection([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setDirection', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLatLngPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::getLatLngPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getLatLngPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setLatLngPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.RegeocodeRoad@$refId::setLatLngPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setLatLngPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_RegeocodeRoad{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_RegeocodeRoad_Batch on List<com_amap_api_services_geocoder_RegeocodeRoad?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getDirection_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getDirection_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setDirection_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setDirection_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLatLngPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::getLatLngPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setLatLngPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.RegeocodeRoad::setLatLngPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,363 @@
// 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/android/android.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 com_amap_api_services_geocoder_StreetNumber extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.geocoder.StreetNumber';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_geocoder_StreetNumber> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_geocoder_StreetNumber__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_StreetNumber>(__result__)!;
}
static Future<List<com_amap_api_services_geocoder_StreetNumber>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_geocoder_StreetNumber__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_StreetNumber>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_geocoder_StreetNumber>()
.toList() ?? <com_amap_api_services_geocoder_StreetNumber>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getStreet() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::getStreet([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getStreet', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setStreet(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::setStreet([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setStreet', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getNumber() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::getNumber([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getNumber', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setNumber(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::setNumber([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setNumber', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLatLonPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::getLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getLatLonPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setLatLonPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::setLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setLatLonPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getDirection() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::getDirection([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getDirection', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDirection(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::setDirection([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setDirection', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.geocoder.StreetNumber@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_geocoder_StreetNumber{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_geocoder_StreetNumber_Batch on List<com_amap_api_services_geocoder_StreetNumber?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getStreet_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getStreet_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setStreet_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setStreet_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getNumber_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setNumber_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setNumber_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLatLonPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setLatLonPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getDirection_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getDirection_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setDirection_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setDirection_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.StreetNumber::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,268 @@
// 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/android/android.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 com_amap_api_services_help_Inputtips extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.help.Inputtips';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_help_Inputtips> create__android_content_Context__com_amap_api_services_help_InputtipsQuery(android_content_Context var1, com_amap_api_services_help_InputtipsQuery var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_help_Inputtips__android_content_Context__com_amap_api_services_help_InputtipsQuery',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Inputtips>(__result__)!;
}
static Future<List<com_amap_api_services_help_Inputtips>> create_batch__android_content_Context__com_amap_api_services_help_InputtipsQuery(List<android_content_Context> var1, List<com_amap_api_services_help_InputtipsQuery> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_help_Inputtips__android_content_Context__com_amap_api_services_help_InputtipsQuery',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Inputtips>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_help_Inputtips>()
.toList() ?? <com_amap_api_services_help_Inputtips>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_help_InputtipsQuery?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Inputtips@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_help_InputtipsQuery>(__result__);
}
Future<void> setQuery(com_amap_api_services_help_InputtipsQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Inputtips@$refId::setQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::setQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setInputtipsListener(com_amap_api_services_help_Inputtips_InputtipsListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Inputtips@$refId::setInputtipsListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::setInputtipsListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> requestInputtipsAsyn() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Inputtips@$refId::requestInputtipsAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtipsAsyn', {"__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_help_Tip>?> requestInputtips() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Inputtips@$refId::requestInputtips([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtips', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Tip>(it)).where((e) => e != null).cast<com_amap_api_services_help_Tip>().toList();
}
Future<void> requestInputtips__String__String(String var1, String var2) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Inputtips@$refId::requestInputtips([\'var1\':$var1, \'var2\':$var2])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtips__String__String', {"var1": var1, "var2": var2, "__this__": this});
// handle native call
return __result__;
}
Future<void> requestInputtips__String__String__String(String var1, String var2, String var3) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Inputtips@$refId::requestInputtips([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtips__String__String__String', {"var1": var1, "var2": var2, "var3": var3, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_help_Inputtips{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_help_Inputtips_Batch on List<com_amap_api_services_help_Inputtips?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_help_InputtipsQuery?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_help_InputtipsQuery>(__result__)).cast<com_amap_api_services_help_InputtipsQuery?>().toList();
}
Future<List<void>> setQuery_batch(List<com_amap_api_services_help_InputtipsQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::setQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> requestInputtipsAsyn_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtipsAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_help_Tip>?>> requestInputtips_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtips_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Tip>(it)).where((e) => e != null).cast<com_amap_api_services_help_Tip>().toList()).cast<List<com_amap_api_services_help_Tip>?>().toList();
}
Future<List<void>> requestInputtips__String__String_batch(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtips__String__String_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> requestInputtips__String__String__String_batch(List<String> var1, List<String> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips::requestInputtips__String__String__String_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,67 @@
// 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/android/android.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 _com_amap_api_services_help_Inputtips_InputtipsListener_SUB extends java_lang_Object with com_amap_api_services_help_Inputtips_InputtipsListener {}
mixin com_amap_api_services_help_Inputtips_InputtipsListener on java_lang_Object {
static com_amap_api_services_help_Inputtips_InputtipsListener subInstance() => _com_amap_api_services_help_Inputtips_InputtipsListener_SUB();
static Future<com_amap_api_services_help_Inputtips_InputtipsListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips.InputtipsListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Inputtips_InputtipsListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.help.Inputtips.InputtipsListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onGetInputtips_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onGetInputtips?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onGetInputtips?.call((args['var1'] as List? ?? []).map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Tip>(it)).where((e) => e != null).cast<com_amap_api_services_help_Tip>().toList(), args['var2']);
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(List<com_amap_api_services_help_Tip>? var1, int? var2)? onGetInputtips;
}

View File

@ -0,0 +1,307 @@
// 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/android/android.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 com_amap_api_services_help_InputtipsQuery extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.help.InputtipsQuery';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_help_InputtipsQuery> create__String__String(String var1, String var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_help_InputtipsQuery__String__String',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_help_InputtipsQuery>(__result__)!;
}
static Future<List<com_amap_api_services_help_InputtipsQuery>> create_batch__String__String(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_help_InputtipsQuery__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_help_InputtipsQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_help_InputtipsQuery>()
.toList() ?? <com_amap_api_services_help_InputtipsQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getKeyword() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::getKeyword([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getKeyword', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getCity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::getCity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getCity', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setType(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::setType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::setType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::getType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCityLimit(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::setCityLimit([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::setCityLimit', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> getCityLimit() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::getCityLimit([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getCityLimit', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setLocation(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::setLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::setLocation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLocation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.InputtipsQuery@$refId::getLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getLocation', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_help_InputtipsQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_help_InputtipsQuery_Batch on List<com_amap_api_services_help_InputtipsQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getKeyword_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getKeyword_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getCity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setType_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::setType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCityLimit_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::setCityLimit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> getCityLimit_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getCityLimit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> setLocation_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::setLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLocation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.InputtipsQuery::getLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
//endregion
}

View File

@ -0,0 +1,475 @@
// 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/android/android.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 com_amap_api_services_help_Tip extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.help.Tip';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_help_Tip> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_help_Tip__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Tip>(__result__)!;
}
static Future<List<com_amap_api_services_help_Tip>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_help_Tip__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_help_Tip>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_help_Tip>()
.toList() ?? <com_amap_api_services_help_Tip>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getPoiID() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::getPoiID([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getPoiID', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setID(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::setID([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setID', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::getPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setPostion(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::setPostion([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setPostion', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getDistrict() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::getDistrict([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getDistrict', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistrict(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::setDistrict([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setDistrict', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAdcode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::getAdcode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getAdcode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAdcode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::setAdcode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setAdcode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAddress() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::getAddress([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getAddress', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAddress(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::setAddress([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setAddress', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setTypeCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::setTypeCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setTypeCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTypeCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.help.Tip@$refId::getTypeCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getTypeCode', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_help_Tip{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_help_Tip_Batch on List<com_amap_api_services_help_Tip?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getPoiID_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getPoiID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setID_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setPostion_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setPostion_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getDistrict_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setDistrict_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setDistrict_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAdcode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAdcode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAddress_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAddress_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setTypeCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::setTypeCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTypeCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Tip::getTypeCode_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,363 @@
// 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/android/android.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 com_amap_api_services_nearby_NearbyInfo extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.nearby.NearbyInfo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_nearby_NearbyInfo> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_nearby_NearbyInfo__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbyInfo>(__result__)!;
}
static Future<List<com_amap_api_services_nearby_NearbyInfo>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_nearby_NearbyInfo__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbyInfo>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_nearby_NearbyInfo>()
.toList() ?? <com_amap_api_services_nearby_NearbyInfo>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setUserID(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::setUserID([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setUserID', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getUserID() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::getUserID([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getUserID', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::getPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::setPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setTimeStamp(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::setTimeStamp([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setTimeStamp', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getTimeStamp() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::getTimeStamp([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getTimeStamp', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDrivingDistance(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::setDrivingDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setDrivingDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getDrivingDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbyInfo@$refId::getDrivingDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getDrivingDistance', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_nearby_NearbyInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_nearby_NearbyInfo_Batch on List<com_amap_api_services_nearby_NearbyInfo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setUserID_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setUserID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getUserID_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getUserID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setTimeStamp_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setTimeStamp_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getTimeStamp_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getTimeStamp_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setDistance_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setDrivingDistance_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::setDrivingDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getDrivingDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbyInfo::getDrivingDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
}

View File

@ -0,0 +1,339 @@
// 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/android/android.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 com_amap_api_services_nearby_NearbySearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.nearby.NearbySearch';
@override
final String tag__ = 'amap_search_fluttify';
static final int GPS = 0;
static final int AMAP = 1;
//endregion
//region creators
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<com_amap_api_services_nearby_NearbySearch?> getInstance(android_content_Context var0) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch::getInstance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::getInstance', {"var0": var0});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearch>(__result__);
}
Future<void> addNearbyListener(com_amap_api_services_nearby_NearbySearch_NearbyListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::addNearbyListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::addNearbyListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> removeNearbyListener(com_amap_api_services_nearby_NearbySearch_NearbyListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::removeNearbyListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::removeNearbyListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> clearUserInfoAsyn() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::clearUserInfoAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::clearUserInfoAsyn', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setUserID(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::setUserID([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::setUserID', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> startUploadNearbyInfoAuto(com_amap_api_services_nearby_UploadInfoCallback var1, int var2) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::startUploadNearbyInfoAuto([\'var2\':$var2])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::startUploadNearbyInfoAuto', {"var1": var1, "var2": var2, "__this__": this});
// handle native call
return __result__;
}
Future<void> stopUploadNearbyInfoAuto() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::stopUploadNearbyInfoAuto([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::stopUploadNearbyInfoAuto', {"__this__": this});
// handle native call
return __result__;
}
Future<void> uploadNearbyInfoAsyn(com_amap_api_services_nearby_UploadInfo var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::uploadNearbyInfoAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::uploadNearbyInfoAsyn', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> searchNearbyInfoAsyn(com_amap_api_services_nearby_NearbySearch_NearbyQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::searchNearbyInfoAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::searchNearbyInfoAsyn', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_nearby_NearbySearchResult?> searchNearbyInfo(com_amap_api_services_nearby_NearbySearch_NearbyQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch@$refId::searchNearbyInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::searchNearbyInfo', {"var1": var1, "__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearchResult>(__result__);
}
static Future<void> destroy() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch::destroy([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::destroy', );
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_nearby_NearbySearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_nearby_NearbySearch_Batch on List<com_amap_api_services_nearby_NearbySearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<List<com_amap_api_services_nearby_NearbySearch?>> getInstance_batch(List<android_content_Context> var0) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::getInstance_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearch>(__result__)).cast<com_amap_api_services_nearby_NearbySearch?>().toList();
}
Future<List<void>> clearUserInfoAsyn_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::clearUserInfoAsyn_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>> setUserID_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::setUserID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> stopUploadNearbyInfoAuto_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::stopUploadNearbyInfoAuto_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>> uploadNearbyInfoAsyn_batch(List<com_amap_api_services_nearby_UploadInfo> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::uploadNearbyInfoAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> searchNearbyInfoAsyn_batch(List<com_amap_api_services_nearby_NearbySearch_NearbyQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::searchNearbyInfoAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_nearby_NearbySearchResult?>> searchNearbyInfo_batch(List<com_amap_api_services_nearby_NearbySearch_NearbyQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::searchNearbyInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearchResult>(__result__)).cast<com_amap_api_services_nearby_NearbySearchResult?>().toList();
}
static Future<List<void>> destroy_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch::destroy_batch', );
return (resultBatch as List).map((__result__) => __result__).cast<void>().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/android/android.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 _com_amap_api_services_nearby_NearbySearch_NearbyListener_SUB extends java_lang_Object with com_amap_api_services_nearby_NearbySearch_NearbyListener {}
mixin com_amap_api_services_nearby_NearbySearch_NearbyListener on java_lang_Object {
static com_amap_api_services_nearby_NearbySearch_NearbyListener subInstance() => _com_amap_api_services_nearby_NearbySearch_NearbyListener_SUB();
static Future<com_amap_api_services_nearby_NearbySearch_NearbyListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearch_NearbyListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.nearby.NearbySearch.NearbyListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onUserInfoCleared':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onUserInfoCleared?.call([\'var1\':${args['var1']}])');
}
// handle the native call
__object__.onUserInfoCleared?.call(args['var1']);
break;
case 'onNearbyInfoSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onNearbyInfoSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onNearbyInfoSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearchResult>(args['var1']), args['var2']);
break;
case 'onNearbyInfoUploaded':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onNearbyInfoUploaded?.call([\'var1\':${args['var1']}])');
}
// handle the native call
__object__.onNearbyInfoUploaded?.call(args['var1']);
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(int? var1)? onUserInfoCleared;
Future<void> Function(com_amap_api_services_nearby_NearbySearchResult? var1, int? var2)? onNearbyInfoSearched;
Future<void> Function(int? var1)? onNearbyInfoUploaded;
}

View File

@ -0,0 +1,363 @@
// 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/android/android.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 com_amap_api_services_nearby_NearbySearch_NearbyQuery extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.nearby.NearbySearch.NearbyQuery';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_nearby_NearbySearch_NearbyQuery> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_nearby_NearbySearch_NearbyQuery__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearch_NearbyQuery>(__result__)!;
}
static Future<List<com_amap_api_services_nearby_NearbySearch_NearbyQuery>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_nearby_NearbySearch_NearbyQuery__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearch_NearbyQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_nearby_NearbySearch_NearbyQuery>()
.toList() ?? <com_amap_api_services_nearby_NearbySearch_NearbyQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setCenterPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::setCenterPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setCenterPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getCenterPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::getCenterPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getCenterPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<int?> getRadius() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::getRadius([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getRadius', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRadius(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::setRadius([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setRadius', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setType(com_amap_api_services_nearby_NearbySearchFunctionType var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::setType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setType', {"var1": var1.toValue(), "__this__": this});
// handle native call
return __result__;
}
Future<int?> getType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::getType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCoordType(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::setCoordType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setCoordType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getCoordType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::getCoordType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getCoordType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTimeRange(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::setTimeRange([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setTimeRange', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getTimeRange() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearch.NearbyQuery@$refId::getTimeRange([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getTimeRange', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_nearby_NearbySearch_NearbyQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_nearby_NearbySearch_NearbyQuery_Batch on List<com_amap_api_services_nearby_NearbySearch_NearbyQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setCenterPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setCenterPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getCenterPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getCenterPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<int?>> getRadius_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getRadius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setRadius_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setRadius_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setType_batch(List<com_amap_api_services_nearby_NearbySearchFunctionType> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__].toValue(), "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setCoordType_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setCoordType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getCoordType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getCoordType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setTimeRange_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::setTimeRange_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getTimeRange_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearch.NearbyQuery::getTimeRange_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
}

View File

@ -0,0 +1,28 @@
// 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 com_amap_api_services_nearby_NearbySearchFunctionType {
DISTANCE_SEARCH /* null */,
DRIVING_DISTANCE_SEARCH /* null */
}
extension com_amap_api_services_nearby_NearbySearchFunctionTypeToX on com_amap_api_services_nearby_NearbySearchFunctionType {
int toValue() {
switch (this) {
case com_amap_api_services_nearby_NearbySearchFunctionType.DISTANCE_SEARCH: return com_amap_api_services_nearby_NearbySearchFunctionType.DISTANCE_SEARCH.index + 0;
case com_amap_api_services_nearby_NearbySearchFunctionType.DRIVING_DISTANCE_SEARCH: return com_amap_api_services_nearby_NearbySearchFunctionType.DRIVING_DISTANCE_SEARCH.index + 0;
default: return 0;
}
}
}
extension com_amap_api_services_nearby_NearbySearchFunctionTypeFromX on int {
com_amap_api_services_nearby_NearbySearchFunctionType tocom_amap_api_services_nearby_NearbySearchFunctionType() {
switch (this) {
default: return com_amap_api_services_nearby_NearbySearchFunctionType.values[this + 0];
}
}
}

View File

@ -0,0 +1,167 @@
// 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/android/android.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 com_amap_api_services_nearby_NearbySearchResult extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.nearby.NearbySearchResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_nearby_NearbySearchResult> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_nearby_NearbySearchResult__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearchResult>(__result__)!;
}
static Future<List<com_amap_api_services_nearby_NearbySearchResult>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_nearby_NearbySearchResult__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbySearchResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_nearby_NearbySearchResult>()
.toList() ?? <com_amap_api_services_nearby_NearbySearchResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_nearby_NearbyInfo>?> getNearbyInfoList() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearchResult@$refId::getNearbyInfoList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearchResult::getNearbyInfoList', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbyInfo>(it)).where((e) => e != null).cast<com_amap_api_services_nearby_NearbyInfo>().toList();
}
Future<int?> getTotalNum() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearchResult@$refId::getTotalNum([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearchResult::getTotalNum', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setNearbyInfoList(List<com_amap_api_services_nearby_NearbyInfo> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.NearbySearchResult@$refId::setNearbyInfoList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearchResult::setNearbyInfoList', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_nearby_NearbySearchResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_nearby_NearbySearchResult_Batch on List<com_amap_api_services_nearby_NearbySearchResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<List<com_amap_api_services_nearby_NearbyInfo>?>> getNearbyInfoList_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearchResult::getNearbyInfoList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_NearbyInfo>(it)).where((e) => e != null).cast<com_amap_api_services_nearby_NearbyInfo>().toList()).cast<List<com_amap_api_services_nearby_NearbyInfo>?>().toList();
}
Future<List<int?>> getTotalNum_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearchResult::getTotalNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setNearbyInfoList_batch(List<List<com_amap_api_services_nearby_NearbyInfo>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.NearbySearchResult::setNearbyInfoList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_nearby_UploadInfo extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.nearby.UploadInfo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_nearby_UploadInfo> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_nearby_UploadInfo__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_UploadInfo>(__result__)!;
}
static Future<List<com_amap_api_services_nearby_UploadInfo>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_nearby_UploadInfo__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_UploadInfo>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_nearby_UploadInfo>()
.toList() ?? <com_amap_api_services_nearby_UploadInfo>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.UploadInfo@$refId::setPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::setPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.UploadInfo@$refId::getPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::getPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setUserID(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.UploadInfo@$refId::setUserID([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::setUserID', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getUserID() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.UploadInfo@$refId::getUserID([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::getUserID', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getCoordType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.UploadInfo@$refId::getCoordType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::getCoordType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCoordType(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.nearby.UploadInfo@$refId::setCoordType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::setCoordType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_nearby_UploadInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_nearby_UploadInfo_Batch on List<com_amap_api_services_nearby_UploadInfo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::setPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::getPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setUserID_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::setUserID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getUserID_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::getUserID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getCoordType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::getCoordType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setCoordType_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfo::setCoordType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,67 @@
// 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/android/android.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 _com_amap_api_services_nearby_UploadInfoCallback_SUB extends java_lang_Object with com_amap_api_services_nearby_UploadInfoCallback {}
mixin com_amap_api_services_nearby_UploadInfoCallback on java_lang_Object {
static com_amap_api_services_nearby_UploadInfoCallback subInstance() => _com_amap_api_services_nearby_UploadInfoCallback_SUB();
static Future<com_amap_api_services_nearby_UploadInfoCallback> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfoCallback::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_nearby_UploadInfoCallback>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.nearby.UploadInfoCallback::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'OnUploadInfoCallback':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.OnUploadInfoCallback?.call([])');
}
// handle the native call
__object__.OnUploadInfoCallback?.call();
break;
default:
throw MissingPluginException('方法${methodCall.method}未实现');
break;
}
} catch (e) {
debugPrint(e.toString());
rethrow;
}
});
return __object__;
}
@override
final String tag__ = 'amap_search_fluttify';
Future<com_amap_api_services_nearby_UploadInfo?> Function()? OnUploadInfoCallback;
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_poisearch_IndoorData extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.IndoorData';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_poisearch_IndoorData> create__String__int__String(String var1, int var2, String var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_IndoorData__String__int__String',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_IndoorData>(__result__)!;
}
static Future<List<com_amap_api_services_poisearch_IndoorData>> create_batch__String__int__String(List<String> var1, List<int> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_IndoorData__String__int__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_IndoorData>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_IndoorData>()
.toList() ?? <com_amap_api_services_poisearch_IndoorData>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getPoiId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.IndoorData@$refId::getPoiId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::getPoiId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPoiId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.IndoorData@$refId::setPoiId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::setPoiId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getFloor() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.IndoorData@$refId::getFloor([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::getFloor', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setFloor(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.IndoorData@$refId::setFloor([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::setFloor', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getFloorName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.IndoorData@$refId::getFloorName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::getFloorName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setFloorName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.IndoorData@$refId::setFloorName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::setFloorName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_IndoorData{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_IndoorData_Batch on List<com_amap_api_services_poisearch_IndoorData?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getPoiId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::getPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setPoiId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::setPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getFloor_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::getFloor_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setFloor_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::setFloor_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getFloorName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::getFloorName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setFloorName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.IndoorData::setFloorName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,216 @@
// 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/android/android.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 com_amap_api_services_poisearch_Photo extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.Photo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_poisearch_Photo> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_Photo__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_Photo>(__result__)!;
}
static Future<com_amap_api_services_poisearch_Photo> create__String__String(String var1, String var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_Photo__String__String',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_Photo>(__result__)!;
}
static Future<List<com_amap_api_services_poisearch_Photo>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_Photo__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_Photo>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_Photo>()
.toList() ?? <com_amap_api_services_poisearch_Photo>[];
}
static Future<List<com_amap_api_services_poisearch_Photo>> create_batch__String__String(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_Photo__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_Photo>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_Photo>()
.toList() ?? <com_amap_api_services_poisearch_Photo>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getTitle() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.Photo@$refId::getTitle([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::getTitle', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTitle(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.Photo@$refId::setTitle([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::setTitle', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getUrl() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.Photo@$refId::getUrl([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::getUrl', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setUrl(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.Photo@$refId::setUrl([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::setUrl', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_Photo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_Photo_Batch on List<com_amap_api_services_poisearch_Photo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getTitle_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::getTitle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setTitle_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::setTitle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getUrl_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::getUrl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setUrl_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.Photo::setUrl_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,139 @@
// 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/android/android.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 com_amap_api_services_poisearch_PoiItemExtension extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.PoiItemExtension';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_poisearch_PoiItemExtension> create__String__String(String var1, String var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiItemExtension__String__String',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiItemExtension>(__result__)!;
}
static Future<List<com_amap_api_services_poisearch_PoiItemExtension>> create_batch__String__String(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiItemExtension__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiItemExtension>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiItemExtension>()
.toList() ?? <com_amap_api_services_poisearch_PoiItemExtension>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getOpentime() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiItemExtension@$refId::getOpentime([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiItemExtension::getOpentime', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getmRating() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiItemExtension@$refId::getmRating([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiItemExtension::getmRating', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_PoiItemExtension{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_PoiItemExtension_Batch on List<com_amap_api_services_poisearch_PoiItemExtension?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getOpentime_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiItemExtension::getOpentime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getmRating_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiItemExtension::getmRating_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,259 @@
// 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/android/android.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 com_amap_api_services_poisearch_PoiResult extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.PoiResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<com_amap_api_services_poisearch_PoiResult?> createPagedResult(com_amap_api_services_poisearch_PoiSearch_Query var0, com_amap_api_services_poisearch_PoiSearch_SearchBound var1, List<String> var2, List<com_amap_api_services_core_SuggestionCity> var3, int var4, int var5, List<com_amap_api_services_core_PoiItem> var6) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiResult::createPagedResult([\'var2\':$var2, \'var4\':$var4, \'var5\':$var5])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::createPagedResult', {"var0": var0, "var1": var1, "var2": var2, "var3": var3, "var4": var4, "var5": var5, "var6": var6});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiResult>(__result__);
}
Future<int?> getPageCount() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiResult@$refId::getPageCount([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getPageCount', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_poisearch_PoiSearch_Query?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiResult@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__);
}
Future<com_amap_api_services_poisearch_PoiSearch_SearchBound?> getBound() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiResult@$refId::getBound([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getBound', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__);
}
Future<List<com_amap_api_services_core_PoiItem>?> getPois() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiResult@$refId::getPois([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getPois', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_PoiItem>(it)).where((e) => e != null).cast<com_amap_api_services_core_PoiItem>().toList();
}
Future<List<String>?> getSearchSuggestionKeywords() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiResult@$refId::getSearchSuggestionKeywords([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getSearchSuggestionKeywords', {"__this__": this});
// handle native call
return (__result__ as List?)?.cast<String>();
}
Future<List<com_amap_api_services_core_SuggestionCity>?> getSearchSuggestionCitys() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiResult@$refId::getSearchSuggestionCitys([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getSearchSuggestionCitys', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(it)).where((e) => e != null).cast<com_amap_api_services_core_SuggestionCity>().toList();
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_PoiResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_PoiResult_Batch on List<com_amap_api_services_poisearch_PoiResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
static Future<List<com_amap_api_services_poisearch_PoiResult?>> createPagedResult_batch(List<com_amap_api_services_poisearch_PoiSearch_Query> var0, List<com_amap_api_services_poisearch_PoiSearch_SearchBound> var1, List<List<String>> var2, List<List<com_amap_api_services_core_SuggestionCity>> var3, List<int> var4, List<int> var5, List<List<com_amap_api_services_core_PoiItem>> var6) async {
assert(var0.length == var1.length && var1.length == var2.length && var2.length == var3.length && var3.length == var4.length && var4.length == var5.length && var5.length == var6.length);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::createPagedResult_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "var5": var5[__i__], "var6": var6[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiResult>(__result__)).cast<com_amap_api_services_poisearch_PoiResult?>().toList();
}
Future<List<int?>> getPageCount_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getPageCount_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<com_amap_api_services_poisearch_PoiSearch_Query?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__)).cast<com_amap_api_services_poisearch_PoiSearch_Query?>().toList();
}
Future<List<com_amap_api_services_poisearch_PoiSearch_SearchBound?>> getBound_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getBound_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__)).cast<com_amap_api_services_poisearch_PoiSearch_SearchBound?>().toList();
}
Future<List<List<com_amap_api_services_core_PoiItem>?>> getPois_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getPois_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_PoiItem>(it)).where((e) => e != null).cast<com_amap_api_services_core_PoiItem>().toList()).cast<List<com_amap_api_services_core_PoiItem>?>().toList();
}
Future<List<List<String>?>> getSearchSuggestionKeywords_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getSearchSuggestionKeywords_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<String>()).cast<List<String>?>().toList();
}
Future<List<List<com_amap_api_services_core_SuggestionCity>?>> getSearchSuggestionCitys_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiResult::getSearchSuggestionCitys_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_SuggestionCity>(it)).where((e) => e != null).cast<com_amap_api_services_core_SuggestionCity>().toList()).cast<List<com_amap_api_services_core_SuggestionCity>?>().toList();
}
//endregion
}

View File

@ -0,0 +1,383 @@
// 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/android/android.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 com_amap_api_services_poisearch_PoiSearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.PoiSearch';
@override
final String tag__ = 'amap_search_fluttify';
static final String ENGLISH = "en";
static final String CHINESE = "zh-CN";
static final String EXTENSIONS_ALL = "all";
static final String EXTENSIONS_BASE = "base";
//endregion
//region creators
static Future<com_amap_api_services_poisearch_PoiSearch> create__android_content_Context__com_amap_api_services_poisearch_PoiSearch_Query(android_content_Context var1, com_amap_api_services_poisearch_PoiSearch_Query var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiSearch__android_content_Context__com_amap_api_services_poisearch_PoiSearch_Query',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch>(__result__)!;
}
static Future<List<com_amap_api_services_poisearch_PoiSearch>> create_batch__android_content_Context__com_amap_api_services_poisearch_PoiSearch_Query(List<android_content_Context> var1, List<com_amap_api_services_poisearch_PoiSearch_Query> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiSearch__android_content_Context__com_amap_api_services_poisearch_PoiSearch_Query',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiSearch>()
.toList() ?? <com_amap_api_services_poisearch_PoiSearch>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setOnPoiSearchListener(com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::setOnPoiSearchListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::setOnPoiSearchListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setLanguage(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::setLanguage([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::setLanguage', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getLanguage() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::getLanguage([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::getLanguage', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_poisearch_PoiResult?> searchPOI() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::searchPOI([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOI', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiResult>(__result__);
}
Future<void> searchPOIAsyn() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::searchPOIAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOIAsyn', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_PoiItem?> searchPOIId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::searchPOIId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOIId', {"var1": var1, "__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_PoiItem>(__result__);
}
Future<void> searchPOIIdAsyn(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::searchPOIIdAsyn([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOIIdAsyn', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setQuery(com_amap_api_services_poisearch_PoiSearch_Query var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::setQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::setQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setBound(com_amap_api_services_poisearch_PoiSearch_SearchBound var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::setBound([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::setBound', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_poisearch_PoiSearch_Query?> getQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::getQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::getQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__);
}
Future<com_amap_api_services_poisearch_PoiSearch_SearchBound?> getBound() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch@$refId::getBound([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::getBound', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_PoiSearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_PoiSearch_Batch on List<com_amap_api_services_poisearch_PoiSearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setLanguage_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::setLanguage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getLanguage_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::getLanguage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<com_amap_api_services_poisearch_PoiResult?>> searchPOI_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOI_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiResult>(__result__)).cast<com_amap_api_services_poisearch_PoiResult?>().toList();
}
Future<List<void>> searchPOIAsyn_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOIAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_PoiItem?>> searchPOIId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOIId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_PoiItem>(__result__)).cast<com_amap_api_services_core_PoiItem?>().toList();
}
Future<List<void>> searchPOIIdAsyn_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::searchPOIIdAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setQuery_batch(List<com_amap_api_services_poisearch_PoiSearch_Query> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::setQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setBound_batch(List<com_amap_api_services_poisearch_PoiSearch_SearchBound> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::setBound_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_poisearch_PoiSearch_Query?>> getQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::getQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__)).cast<com_amap_api_services_poisearch_PoiSearch_Query?>().toList();
}
Future<List<com_amap_api_services_poisearch_PoiSearch_SearchBound?>> getBound_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch::getBound_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__)).cast<com_amap_api_services_poisearch_PoiSearch_SearchBound?>().toList();
}
//endregion
}

View File

@ -0,0 +1,78 @@
// 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/android/android.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 _com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener_SUB extends java_lang_Object with com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener {}
mixin com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener on java_lang_Object {
static com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener subInstance() => _com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener_SUB();
static Future<com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.OnPoiSearchListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.poisearch.PoiSearch.OnPoiSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onPoiSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onPoiSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onPoiSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiResult>(args['var1']), args['var2']);
break;
case 'onPoiItemSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onPoiItemSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onPoiItemSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_core_PoiItem>(args['var1']), args['var2']);
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(com_amap_api_services_poisearch_PoiResult? var1, int? var2)? onPoiSearched;
Future<void> Function(com_amap_api_services_core_PoiItem? var1, int? var2)? onPoiItemSearched;
}

View File

@ -0,0 +1,776 @@
// 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/android/android.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 com_amap_api_services_poisearch_PoiSearch_Query extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.PoiSearch.Query';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_poisearch_PoiSearch_Query> create__String__String(String var1, String var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiSearch_Query__String__String',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__)!;
}
static Future<com_amap_api_services_poisearch_PoiSearch_Query> create__String__String__String(String var1, String var2, String var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiSearch_Query__String__String__String',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__)!;
}
static Future<List<com_amap_api_services_poisearch_PoiSearch_Query>> create_batch__String__String(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiSearch_Query__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiSearch_Query>()
.toList() ?? <com_amap_api_services_poisearch_PoiSearch_Query>[];
}
static Future<List<com_amap_api_services_poisearch_PoiSearch_Query>> create_batch__String__String__String(List<String> var1, List<String> var2, List<String> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiSearch_Query__String__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiSearch_Query>()
.toList() ?? <com_amap_api_services_poisearch_PoiSearch_Query>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getBuilding() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getBuilding([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getBuilding', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBuilding(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setBuilding([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setBuilding', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getQueryString() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getQueryString([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getQueryString', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setQueryLanguage(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setQueryLanguage([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setQueryLanguage', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCategory() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getCategory([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getCategory', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getCity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getCity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getCity', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageNum() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getPageNum([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getPageNum', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPageNum(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setPageNum([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setPageNum', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setPageSize(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setPageSize([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setPageSize', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getPageSize() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getPageSize([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getPageSize', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCityLimit(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setCityLimit([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setCityLimit', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> getCityLimit() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getCityLimit([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getCityLimit', {"__this__": this});
// handle native call
return __result__;
}
Future<void> requireSubPois(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::requireSubPois([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::requireSubPois', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> isRequireSubPois() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::isRequireSubPois([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::isRequireSubPois', {"__this__": this});
// handle native call
return __result__;
}
Future<bool?> isDistanceSort() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::isDistanceSort([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::isDistanceSort', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistanceSort(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setDistanceSort([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setDistanceSort', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLocation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getLocation', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setLocation(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setLocation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> isSpecial() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::isSpecial([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::isSpecial', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSpecial(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setSpecial([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setSpecial', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getExtensions() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::getExtensions([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getExtensions', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setExtensions(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::setExtensions([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setExtensions', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> queryEquals(com_amap_api_services_poisearch_PoiSearch_Query var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::queryEquals([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::queryEquals', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_poisearch_PoiSearch_Query?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.Query@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_PoiSearch_Query{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_PoiSearch_Query_Batch on List<com_amap_api_services_poisearch_PoiSearch_Query?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getBuilding_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getBuilding_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBuilding_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setBuilding_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getQueryString_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getQueryString_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setQueryLanguage_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setQueryLanguage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCategory_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getCategory_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getCity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getPageNum_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getPageNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPageNum_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setPageNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setPageSize_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getPageSize_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getPageSize_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setCityLimit_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setCityLimit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> getCityLimit_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getCityLimit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> requireSubPois_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::requireSubPois_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> isRequireSubPois_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::isRequireSubPois_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> isDistanceSort_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::isDistanceSort_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> setDistanceSort_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setDistanceSort_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLocation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setLocation_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> isSpecial_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::isSpecial_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> setSpecial_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setSpecial_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getExtensions_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::getExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setExtensions_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::setExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> queryEquals_batch(List<com_amap_api_services_poisearch_PoiSearch_Query> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::queryEquals_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<com_amap_api_services_poisearch_PoiSearch_Query?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.Query::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_Query>(__result__)).cast<com_amap_api_services_poisearch_PoiSearch_Query?>().toList();
}
//endregion
}

View File

@ -0,0 +1,373 @@
// 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/android/android.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 com_amap_api_services_poisearch_PoiSearch_SearchBound extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.PoiSearch.SearchBound';
@override
final String tag__ = 'amap_search_fluttify';
static final String BOUND_SHAPE = "Bound";
static final String POLYGON_SHAPE = "Polygon";
static final String RECTANGLE_SHAPE = "Rectangle";
static final String ELLIPSE_SHAPE = "Ellipse";
//endregion
//region creators
static Future<com_amap_api_services_poisearch_PoiSearch_SearchBound> create__com_amap_api_services_core_LatLonPoint__int(com_amap_api_services_core_LatLonPoint var1, int var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiSearch_SearchBound__com_amap_api_services_core_LatLonPoint__int',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__)!;
}
static Future<com_amap_api_services_poisearch_PoiSearch_SearchBound> create__com_amap_api_services_core_LatLonPoint__int__boolean(com_amap_api_services_core_LatLonPoint var1, int var2, bool var3) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiSearch_SearchBound__com_amap_api_services_core_LatLonPoint__int__boolean',
{"var1": var1, "var2": var2, "var3": var3}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__)!;
}
static Future<com_amap_api_services_poisearch_PoiSearch_SearchBound> create__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint(com_amap_api_services_core_LatLonPoint var1, com_amap_api_services_core_LatLonPoint var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiSearch_SearchBound__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__)!;
}
static Future<com_amap_api_services_poisearch_PoiSearch_SearchBound> create__List_java_util_List_com_amap_api_services_core_LatLonPoint__(List<com_amap_api_services_core_LatLonPoint> var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_PoiSearch_SearchBound__java_util_List_com_amap_api_services_core_LatLonPoint_',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__)!;
}
static Future<List<com_amap_api_services_poisearch_PoiSearch_SearchBound>> create_batch__com_amap_api_services_core_LatLonPoint__int(List<com_amap_api_services_core_LatLonPoint> var1, List<int> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiSearch_SearchBound__com_amap_api_services_core_LatLonPoint__int',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiSearch_SearchBound>()
.toList() ?? <com_amap_api_services_poisearch_PoiSearch_SearchBound>[];
}
static Future<List<com_amap_api_services_poisearch_PoiSearch_SearchBound>> create_batch__com_amap_api_services_core_LatLonPoint__int__boolean(List<com_amap_api_services_core_LatLonPoint> var1, List<int> var2, List<bool> var3) async {
assert(var1.length == var2.length && var2.length == var3.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiSearch_SearchBound__com_amap_api_services_core_LatLonPoint__int__boolean',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiSearch_SearchBound>()
.toList() ?? <com_amap_api_services_poisearch_PoiSearch_SearchBound>[];
}
static Future<List<com_amap_api_services_poisearch_PoiSearch_SearchBound>> create_batch__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint(List<com_amap_api_services_core_LatLonPoint> var1, List<com_amap_api_services_core_LatLonPoint> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiSearch_SearchBound__com_amap_api_services_core_LatLonPoint__com_amap_api_services_core_LatLonPoint',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiSearch_SearchBound>()
.toList() ?? <com_amap_api_services_poisearch_PoiSearch_SearchBound>[];
}
static Future<List<com_amap_api_services_poisearch_PoiSearch_SearchBound>> create_batch__List_java_util_List_com_amap_api_services_core_LatLonPoint__(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_PoiSearch_SearchBound__java_util_List_com_amap_api_services_core_LatLonPoint_',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_PoiSearch_SearchBound>()
.toList() ?? <com_amap_api_services_poisearch_PoiSearch_SearchBound>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_core_LatLonPoint?> getLowerLeft() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::getLowerLeft([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getLowerLeft', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<com_amap_api_services_core_LatLonPoint?> getUpperRight() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::getUpperRight([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getUpperRight', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<com_amap_api_services_core_LatLonPoint?> getCenter() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::getCenter([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getCenter', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<int?> getRange() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::getRange([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getRange', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getShape() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::getShape([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getShape', {"__this__": this});
// handle native call
return __result__;
}
Future<bool?> isDistanceSort() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::isDistanceSort([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::isDistanceSort', {"__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyGonList() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::getPolyGonList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getPolyGonList', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<com_amap_api_services_poisearch_PoiSearch_SearchBound?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.PoiSearch.SearchBound@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__);
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_PoiSearch_SearchBound{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_PoiSearch_SearchBound_Batch on List<com_amap_api_services_poisearch_PoiSearch_SearchBound?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_core_LatLonPoint?>> getLowerLeft_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getLowerLeft_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getUpperRight_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getUpperRight_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getCenter_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getCenter_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<int?>> getRange_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getRange_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<String?>> getShape_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getShape_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> isDistanceSort_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::isDistanceSort_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyGonList_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::getPolyGonList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<com_amap_api_services_poisearch_PoiSearch_SearchBound?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.SearchBound::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_PoiSearch_SearchBound>(__result__)).cast<com_amap_api_services_poisearch_PoiSearch_SearchBound?>().toList();
}
//endregion
}

View File

@ -0,0 +1,475 @@
// 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/android/android.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 com_amap_api_services_poisearch_SubPoiItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.poisearch.SubPoiItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_poisearch_SubPoiItem> create__String__com_amap_api_services_core_LatLonPoint__String__String(String var1, com_amap_api_services_core_LatLonPoint var2, String var3, String var4) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_poisearch_SubPoiItem__String__com_amap_api_services_core_LatLonPoint__String__String',
{"var1": var1, "var2": var2, "var3": var3, "var4": var4}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_SubPoiItem>(__result__)!;
}
static Future<List<com_amap_api_services_poisearch_SubPoiItem>> create_batch__String__com_amap_api_services_core_LatLonPoint__String__String(List<String> var1, List<com_amap_api_services_core_LatLonPoint> var2, List<String> var3, List<String> var4) async {
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_poisearch_SubPoiItem__String__com_amap_api_services_core_LatLonPoint__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_poisearch_SubPoiItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_poisearch_SubPoiItem>()
.toList() ?? <com_amap_api_services_poisearch_SubPoiItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getPoiId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::getPoiId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getPoiId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPoiId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::setPoiId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setPoiId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTitle() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::getTitle([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getTitle', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTitle(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::setTitle([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setTitle', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getSubName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::getSubName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getSubName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSubName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::setSubName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setSubName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLatLonPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::getLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getLatLonPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setLatLonPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::setLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setLatLonPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getSnippet() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::getSnippet([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getSnippet', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSnippet(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::setSnippet([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setSnippet', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getSubTypeDes() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::getSubTypeDes([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getSubTypeDes', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSubTypeDes(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.poisearch.SubPoiItem@$refId::setSubTypeDes([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setSubTypeDes', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_poisearch_SubPoiItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_poisearch_SubPoiItem_Batch on List<com_amap_api_services_poisearch_SubPoiItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getPoiId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setPoiId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTitle_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getTitle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setTitle_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setTitle_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getSubName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getSubName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setSubName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setSubName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setDistance_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLatLonPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setLatLonPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getSnippet_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getSnippet_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setSnippet_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setSnippet_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getSubTypeDes_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::getSubTypeDes_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setSubTypeDes_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.SubPoiItem::setSubTypeDes_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,419 @@
// 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/android/android.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 com_amap_api_services_road_Crossroad extends com_amap_api_services_road_Road with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.road.Crossroad';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_road_Crossroad> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_road_Crossroad__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_road_Crossroad>(__result__)!;
}
static Future<List<com_amap_api_services_road_Crossroad>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_road_Crossroad__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_road_Crossroad>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_road_Crossroad>()
.toList() ?? <com_amap_api_services_road_Crossroad>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getDirection() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::getDirection([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getDirection', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDirection(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::setDirection([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setDirection', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getFirstRoadId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::getFirstRoadId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getFirstRoadId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setFirstRoadId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::setFirstRoadId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setFirstRoadId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getFirstRoadName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::getFirstRoadName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getFirstRoadName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setFirstRoadName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::setFirstRoadName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setFirstRoadName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getSecondRoadId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::getSecondRoadId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getSecondRoadId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSecondRoadId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::setSecondRoadId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setSecondRoadId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getSecondRoadName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::getSecondRoadName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getSecondRoadName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setSecondRoadName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Crossroad@$refId::setSecondRoadName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setSecondRoadName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_road_Crossroad{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_road_Crossroad_Batch on List<com_amap_api_services_road_Crossroad?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getDirection_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getDirection_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setDirection_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setDirection_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getFirstRoadId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getFirstRoadId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setFirstRoadId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setFirstRoadId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getFirstRoadName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getFirstRoadName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setFirstRoadName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setFirstRoadName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getSecondRoadId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getSecondRoadId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setSecondRoadId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setSecondRoadId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getSecondRoadName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::getSecondRoadName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setSecondRoadName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Crossroad::setSecondRoadName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,440 @@
// 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/android/android.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 com_amap_api_services_road_Road extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.road.Road';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_road_Road> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_road_Road__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_road_Road>(__result__)!;
}
static Future<com_amap_api_services_road_Road> create__String__String(String var1, String var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_road_Road__String__String',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_road_Road>(__result__)!;
}
static Future<List<com_amap_api_services_road_Road>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_road_Road__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_road_Road>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_road_Road>()
.toList() ?? <com_amap_api_services_road_Road>[];
}
static Future<List<com_amap_api_services_road_Road>> create_batch__String__String(List<String> var1, List<String> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_road_Road__String__String',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_road_Road>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_road_Road>()
.toList() ?? <com_amap_api_services_road_Road>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::setId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getCityCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::getCityCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getCityCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCityCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::setCityCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setCityCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getRoadWidth() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::getRoadWidth([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getRoadWidth', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRoadWidth(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::setRoadWidth([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setRoadWidth', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::getType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getType', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setType(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::setType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getCenterPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::getCenterPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getCenterPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setCenterPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::setCenterPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setCenterPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::getId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getId', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.road.Road@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getName', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_road_Road{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_road_Road_Batch on List<com_amap_api_services_road_Road?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getCityCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setCityCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setCityCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getRoadWidth_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getRoadWidth_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setRoadWidth_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setRoadWidth_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setType_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getCenterPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getCenterPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setCenterPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::setCenterPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.road.Road::getName_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,363 @@
// 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/android/android.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 com_amap_api_services_route_BusPath extends com_amap_api_services_route_Path with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.BusPath';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_BusPath> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_BusPath__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusPath>(__result__)!;
}
static Future<List<com_amap_api_services_route_BusPath>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_BusPath__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusPath>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_BusPath>()
.toList() ?? <com_amap_api_services_route_BusPath>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getCost() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::getCost([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getCost', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setCost(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::setCost([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setCost', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> isNightBus() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::isNightBus([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::isNightBus', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setNightBus(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::setNightBus([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setNightBus', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getWalkDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::getWalkDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getWalkDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setWalkDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::setWalkDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setWalkDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getBusDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::getBusDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getBusDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBusDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::setBusDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setBusDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_BusStep>?> getSteps() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::getSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getSteps', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_BusStep>().toList();
}
Future<void> setSteps(List<com_amap_api_services_route_BusStep> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusPath@$refId::setSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setSteps', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_BusPath{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_BusPath_Batch on List<com_amap_api_services_route_BusPath?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getCost_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setCost_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> isNightBus_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::isNightBus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> setNightBus_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setNightBus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getWalkDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getWalkDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setWalkDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setWalkDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getBusDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getBusDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setBusDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setBusDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_BusStep>?>> getSteps_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::getSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_BusStep>().toList()).cast<List<com_amap_api_services_route_BusStep>?>().toList();
}
Future<List<void>> setSteps_batch(List<List<com_amap_api_services_route_BusStep>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusPath::setSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_route_BusRouteResult extends com_amap_api_services_route_RouteResult with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.BusRouteResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_BusRouteResult> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_BusRouteResult__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusRouteResult>(__result__)!;
}
static Future<List<com_amap_api_services_route_BusRouteResult>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_BusRouteResult__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusRouteResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_BusRouteResult>()
.toList() ?? <com_amap_api_services_route_BusRouteResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getTaxiCost() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusRouteResult@$refId::getTaxiCost([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::getTaxiCost', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTaxiCost(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusRouteResult@$refId::setTaxiCost([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::setTaxiCost', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_BusPath>?> getPaths() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusRouteResult@$refId::getPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::getPaths', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusPath>(it)).where((e) => e != null).cast<com_amap_api_services_route_BusPath>().toList();
}
Future<void> setPaths(List<com_amap_api_services_route_BusPath> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusRouteResult@$refId::setPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::setPaths', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_RouteSearch_BusRouteQuery?> getBusQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusRouteResult@$refId::getBusQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::getBusQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearch_BusRouteQuery>(__result__);
}
Future<void> setBusQuery(com_amap_api_services_route_RouteSearch_BusRouteQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusRouteResult@$refId::setBusQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::setBusQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_BusRouteResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_BusRouteResult_Batch on List<com_amap_api_services_route_BusRouteResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getTaxiCost_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::getTaxiCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTaxiCost_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::setTaxiCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_BusPath>?>> getPaths_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::getPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusPath>(it)).where((e) => e != null).cast<com_amap_api_services_route_BusPath>().toList()).cast<List<com_amap_api_services_route_BusPath>?>().toList();
}
Future<List<void>> setPaths_batch(List<List<com_amap_api_services_route_BusPath>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::setPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_RouteSearch_BusRouteQuery?>> getBusQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::getBusQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearch_BusRouteQuery>(__result__)).cast<com_amap_api_services_route_RouteSearch_BusRouteQuery?>().toList();
}
Future<List<void>> setBusQuery_batch(List<com_amap_api_services_route_RouteSearch_BusRouteQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusRouteResult::setBusQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,475 @@
// 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/android/android.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 com_amap_api_services_route_BusStep extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.BusStep';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_BusStep> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_BusStep__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusStep>(__result__)!;
}
static Future<List<com_amap_api_services_route_BusStep>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_BusStep__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_BusStep>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_BusStep>()
.toList() ?? <com_amap_api_services_route_BusStep>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_route_RouteBusWalkItem?> getWalk() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::getWalk([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getWalk', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusWalkItem>(__result__);
}
Future<void> setWalk(com_amap_api_services_route_RouteBusWalkItem var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::setWalk([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setWalk', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
@deprecated
Future<com_amap_api_services_route_RouteBusLineItem?> getBusLine() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::getBusLine([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getBusLine', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusLineItem>(__result__);
}
Future<List<com_amap_api_services_route_RouteBusLineItem>?> getBusLines() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::getBusLines([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getBusLines', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusLineItem>(it)).where((e) => e != null).cast<com_amap_api_services_route_RouteBusLineItem>().toList();
}
@deprecated
Future<void> setBusLine(com_amap_api_services_route_RouteBusLineItem var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::setBusLine([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setBusLine', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setBusLines(List<com_amap_api_services_route_RouteBusLineItem> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::setBusLines([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setBusLines', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_Doorway?> getEntrance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::getEntrance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getEntrance', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Doorway>(__result__);
}
Future<void> setEntrance(com_amap_api_services_route_Doorway var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::setEntrance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setEntrance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_Doorway?> getExit() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::getExit([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getExit', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Doorway>(__result__);
}
Future<void> setExit(com_amap_api_services_route_Doorway var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::setExit([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setExit', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_RouteRailwayItem?> getRailway() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::getRailway([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getRailway', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteRailwayItem>(__result__);
}
Future<void> setRailway(com_amap_api_services_route_RouteRailwayItem var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::setRailway([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setRailway', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_TaxiItem?> getTaxi() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::getTaxi([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getTaxi', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TaxiItem>(__result__);
}
Future<void> setTaxi(com_amap_api_services_route_TaxiItem var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.BusStep@$refId::setTaxi([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setTaxi', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_BusStep{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_BusStep_Batch on List<com_amap_api_services_route_BusStep?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_RouteBusWalkItem?>> getWalk_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getWalk_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusWalkItem>(__result__)).cast<com_amap_api_services_route_RouteBusWalkItem?>().toList();
}
Future<List<void>> setWalk_batch(List<com_amap_api_services_route_RouteBusWalkItem> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setWalk_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
@deprecated
Future<List<com_amap_api_services_route_RouteBusLineItem?>> getBusLine_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getBusLine_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusLineItem>(__result__)).cast<com_amap_api_services_route_RouteBusLineItem?>().toList();
}
Future<List<List<com_amap_api_services_route_RouteBusLineItem>?>> getBusLines_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getBusLines_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusLineItem>(it)).where((e) => e != null).cast<com_amap_api_services_route_RouteBusLineItem>().toList()).cast<List<com_amap_api_services_route_RouteBusLineItem>?>().toList();
}
@deprecated
Future<List<void>> setBusLine_batch(List<com_amap_api_services_route_RouteBusLineItem> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setBusLine_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setBusLines_batch(List<List<com_amap_api_services_route_RouteBusLineItem>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setBusLines_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_Doorway?>> getEntrance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getEntrance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Doorway>(__result__)).cast<com_amap_api_services_route_Doorway?>().toList();
}
Future<List<void>> setEntrance_batch(List<com_amap_api_services_route_Doorway> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setEntrance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_Doorway?>> getExit_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getExit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Doorway>(__result__)).cast<com_amap_api_services_route_Doorway?>().toList();
}
Future<List<void>> setExit_batch(List<com_amap_api_services_route_Doorway> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setExit_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_RouteRailwayItem?>> getRailway_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getRailway_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteRailwayItem>(__result__)).cast<com_amap_api_services_route_RouteRailwayItem?>().toList();
}
Future<List<void>> setRailway_batch(List<com_amap_api_services_route_RouteRailwayItem> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setRailway_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_TaxiItem?>> getTaxi_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::getTaxi_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TaxiItem>(__result__)).cast<com_amap_api_services_route_TaxiItem?>().toList();
}
Future<List<void>> setTaxi_batch(List<com_amap_api_services_route_TaxiItem> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.BusStep::setTaxi_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,755 @@
// 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/android/android.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 com_amap_api_services_route_ChargeStationInfo extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.route.ChargeStationInfo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_ChargeStationInfo> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_ChargeStationInfo__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ChargeStationInfo>(__result__)!;
}
static Future<List<com_amap_api_services_route_ChargeStationInfo>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_ChargeStationInfo__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ChargeStationInfo>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_ChargeStationInfo>()
.toList() ?? <com_amap_api_services_route_ChargeStationInfo>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<int?> getStepIndex() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getStepIndex([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getStepIndex', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setStepIndex(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setStepIndex([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setStepIndex', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getShowPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getShowPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getShowPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setShowPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setShowPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setShowPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getProjectivePoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getProjectivePoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getProjectivePoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setProjectivePoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setProjectivePoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setProjectivePoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getPoiId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getPoiId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getPoiId', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPoiId(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setPoiId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setPoiId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getBrandName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getBrandName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getBrandName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setBrandName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setBrandName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setBrandName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getMaxPower() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getMaxPower([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getMaxPower', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setMaxPower(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setMaxPower([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setMaxPower', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getChargePercent() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getChargePercent([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getChargePercent', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setChargePercent(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setChargePercent([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setChargePercent', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getChargeTime() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getChargeTime([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getChargeTime', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setChargeTime(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setChargeTime([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setChargeTime', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getRemainingCapacity() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getRemainingCapacity([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getRemainingCapacity', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRemainingCapacity(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setRemainingCapacity([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setRemainingCapacity', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getVoltage() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getVoltage([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getVoltage', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setVoltage(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setVoltage([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setVoltage', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getAmperage() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::getAmperage([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getAmperage', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAmperage(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ChargeStationInfo@$refId::setAmperage([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setAmperage', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_ChargeStationInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_ChargeStationInfo_Batch on List<com_amap_api_services_route_ChargeStationInfo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<int?>> getStepIndex_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getStepIndex_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setStepIndex_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setStepIndex_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getShowPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getShowPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setShowPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setShowPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getProjectivePoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getProjectivePoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setProjectivePoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setProjectivePoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getPoiId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setPoiId_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getBrandName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getBrandName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setBrandName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setBrandName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getMaxPower_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getMaxPower_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setMaxPower_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setMaxPower_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getChargePercent_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getChargePercent_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setChargePercent_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setChargePercent_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getChargeTime_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getChargeTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setChargeTime_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setChargeTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getRemainingCapacity_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getRemainingCapacity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setRemainingCapacity_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setRemainingCapacity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getVoltage_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getVoltage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setVoltage_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setVoltage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getAmperage_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::getAmperage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setAmperage_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ChargeStationInfo::setAmperage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,363 @@
// 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/android/android.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 com_amap_api_services_route_Cost extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.route.Cost';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_Cost> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_Cost__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Cost>(__result__)!;
}
static Future<List<com_amap_api_services_route_Cost>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_Cost__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Cost>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_Cost>()
.toList() ?? <com_amap_api_services_route_Cost>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getDuration() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::getDuration([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getDuration', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDuration(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::setDuration([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setDuration', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTollDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::getTollDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTollDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTollDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::setTollDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTollDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTollRoad() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::getTollRoad([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTollRoad', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTollRoad(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::setTollRoad([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTollRoad', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTolls() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::getTolls([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTolls', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTolls(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::setTolls([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTolls', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getTrafficLights() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::getTrafficLights([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTrafficLights', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTrafficLights(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Cost@$refId::setTrafficLights([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTrafficLights', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_Cost{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_Cost_Batch on List<com_amap_api_services_route_Cost?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getDuration_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDuration_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTollDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTollDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTollRoad_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTollRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setTollRoad_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTollRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTolls_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTolls_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getTrafficLights_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::getTrafficLights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setTrafficLights_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Cost::setTrafficLights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,447 @@
// 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/android/android.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 com_amap_api_services_route_DistanceItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DistanceItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DistanceItem> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DistanceItem__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceItem>(__result__)!;
}
static Future<List<com_amap_api_services_route_DistanceItem>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DistanceItem__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DistanceItem>()
.toList() ?? <com_amap_api_services_route_DistanceItem>[];
}
//endregion
//region getters
Future<int?> get_ERROR_CODE_NO_DRIVE() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("com.amap.api.services.route.DistanceItem::get_ERROR_CODE_NO_DRIVE", {'__this__': this});
return __result__;
}
Future<int?> get_ERROR_CODE_TOO_FAR() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("com.amap.api.services.route.DistanceItem::get_ERROR_CODE_TOO_FAR", {'__this__': this});
return __result__;
}
Future<int?> get_ERROR_CODE_NOT_IN_CHINA() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("com.amap.api.services.route.DistanceItem::get_ERROR_CODE_NOT_IN_CHINA", {'__this__': this});
return __result__;
}
//endregion
//region setters
//endregion
//region methods
Future<int?> getOriginId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::getOriginId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getOriginId', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getDestId() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::getDestId([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getDestId', {"__this__": this});
// handle native call
return __result__;
}
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<double?> getDuration() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::getDuration([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getDuration', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getErrorInfo() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::getErrorInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getErrorInfo', {"__this__": this});
// handle native call
return __result__;
}
Future<int?> getErrorCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::getErrorCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getErrorCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setOriginId(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::setOriginId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setOriginId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setDestId(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::setDestId([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setDestId', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setDuration(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::setDuration([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setDuration', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setErrorInfo(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::setErrorInfo([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setErrorInfo', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setErrorCode(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceItem@$refId::setErrorCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setErrorCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DistanceItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DistanceItem_Batch on List<com_amap_api_services_route_DistanceItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<int?>> get_ERROR_CODE_NO_DRIVE_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("com.amap.api.services.route.DistanceItem::get_ERROR_CODE_NO_DRIVE_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_ERROR_CODE_TOO_FAR_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("com.amap.api.services.route.DistanceItem::get_ERROR_CODE_TOO_FAR_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> get_ERROR_CODE_NOT_IN_CHINA_batch() async {
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("com.amap.api.services.route.DistanceItem::get_ERROR_CODE_NOT_IN_CHINA_batch", [for (final __item__ in this) {'__this__': __item__}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
//endregion
//region setters
//endregion
//region methods
Future<List<int?>> getOriginId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getOriginId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<int?>> getDestId_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getDestId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<double?>> getDuration_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<String?>> getErrorInfo_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getErrorInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<int?>> getErrorCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::getErrorCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setOriginId_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setOriginId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setDestId_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setDestId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setDuration_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setErrorInfo_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setErrorInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setErrorCode_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceItem::setErrorCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_route_DistanceResult extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DistanceResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DistanceResult> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DistanceResult__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceResult>(__result__)!;
}
static Future<List<com_amap_api_services_route_DistanceResult>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DistanceResult__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DistanceResult>()
.toList() ?? <com_amap_api_services_route_DistanceResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setDistanceQuery(com_amap_api_services_route_DistanceSearch_DistanceQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceResult@$refId::setDistanceQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::setDistanceQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_DistanceSearch_DistanceQuery?> getDistanceQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceResult@$refId::getDistanceQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::getDistanceQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch_DistanceQuery>(__result__);
}
Future<List<com_amap_api_services_route_DistanceItem>?> getDistanceResults() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceResult@$refId::getDistanceResults([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::getDistanceResults', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceItem>(it)).where((e) => e != null).cast<com_amap_api_services_route_DistanceItem>().toList();
}
Future<void> setDistanceResults(List<com_amap_api_services_route_DistanceItem> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceResult@$refId::setDistanceResults([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::setDistanceResults', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DistanceResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DistanceResult_Batch on List<com_amap_api_services_route_DistanceResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<void>> setDistanceQuery_batch(List<com_amap_api_services_route_DistanceSearch_DistanceQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::setDistanceQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_DistanceSearch_DistanceQuery?>> getDistanceQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::getDistanceQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch_DistanceQuery>(__result__)).cast<com_amap_api_services_route_DistanceSearch_DistanceQuery?>().toList();
}
Future<List<List<com_amap_api_services_route_DistanceItem>?>> getDistanceResults_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::getDistanceResults_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceItem>(it)).where((e) => e != null).cast<com_amap_api_services_route_DistanceItem>().toList()).cast<List<com_amap_api_services_route_DistanceItem>?>().toList();
}
Future<List<void>> setDistanceResults_batch(List<List<com_amap_api_services_route_DistanceItem>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceResult::setDistanceResults_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,160 @@
// 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/android/android.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 com_amap_api_services_route_DistanceSearch extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.route.DistanceSearch';
@override
final String tag__ = 'amap_search_fluttify';
static final int TYPE_DISTANCE = 0;
static final int TYPE_DRIVING_DISTANCE = 1;
static final int TYPE_WALK_DISTANCE = 3;
static final String EXTENSIONS_ALL = "all";
static final String EXTENSIONS_BASE = "base";
//endregion
//region creators
static Future<com_amap_api_services_route_DistanceSearch> create__android_content_Context(android_content_Context var1) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DistanceSearch__android_content_Context',
{"var1": var1}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch>(__result__)!;
}
static Future<List<com_amap_api_services_route_DistanceSearch>> create_batch__android_content_Context(List<android_content_Context> var1) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DistanceSearch__android_content_Context',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DistanceSearch>()
.toList() ?? <com_amap_api_services_route_DistanceSearch>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<void> setDistanceSearchListener(com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch@$refId::setDistanceSearchListener([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch::setDistanceSearchListener', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_DistanceResult?> calculateRouteDistance(com_amap_api_services_route_DistanceSearch_DistanceQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch@$refId::calculateRouteDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch::calculateRouteDistance', {"var1": var1, "__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceResult>(__result__);
}
Future<void> calculateRouteDistanceAsyn(com_amap_api_services_route_DistanceSearch_DistanceQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch@$refId::calculateRouteDistanceAsyn([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch::calculateRouteDistanceAsyn', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DistanceSearch{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DistanceSearch_Batch on List<com_amap_api_services_route_DistanceSearch?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_DistanceResult?>> calculateRouteDistance_batch(List<com_amap_api_services_route_DistanceSearch_DistanceQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch::calculateRouteDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceResult>(__result__)).cast<com_amap_api_services_route_DistanceResult?>().toList();
}
Future<List<void>> calculateRouteDistanceAsyn_batch(List<com_amap_api_services_route_DistanceSearch_DistanceQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch::calculateRouteDistanceAsyn_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,419 @@
// 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/android/android.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 com_amap_api_services_route_DistanceSearch_DistanceQuery extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DistanceSearch.DistanceQuery';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DistanceSearch_DistanceQuery> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DistanceSearch_DistanceQuery__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch_DistanceQuery>(__result__)!;
}
static Future<List<com_amap_api_services_route_DistanceSearch_DistanceQuery>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DistanceSearch_DistanceQuery__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch_DistanceQuery>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DistanceSearch_DistanceQuery>()
.toList() ?? <com_amap_api_services_route_DistanceSearch_DistanceQuery>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_route_DistanceSearch_DistanceQuery?> clone() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::clone([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::clone', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch_DistanceQuery>(__result__);
}
Future<int?> getType() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::getType([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getType', {"__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getOrigins() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::getOrigins([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getOrigins', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<com_amap_api_services_core_LatLonPoint?> getDestination() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::getDestination([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getDestination', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setType(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::setType([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setType', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setOrigins(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::setOrigins([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setOrigins', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> addOrigins(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::addOrigins([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::addOrigins', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setDestination(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::setDestination([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setDestination', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getExtensions() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::getExtensions([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getExtensions', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setExtensions(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::setExtensions([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setExtensions', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getMode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::getMode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getMode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setMode(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DistanceSearch.DistanceQuery@$refId::setMode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setMode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DistanceSearch_DistanceQuery{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DistanceSearch_DistanceQuery_Batch on List<com_amap_api_services_route_DistanceSearch_DistanceQuery?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_DistanceSearch_DistanceQuery?>> clone_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::clone_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch_DistanceQuery>(__result__)).cast<com_amap_api_services_route_DistanceSearch_DistanceQuery?>().toList();
}
Future<List<int?>> getType_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getOrigins_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getOrigins_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getDestination_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getDestination_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setType_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setOrigins_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setOrigins_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> addOrigins_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::addOrigins_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setDestination_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setDestination_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getExtensions_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setExtensions_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setExtensions_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getMode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::getMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setMode_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.DistanceQuery::setMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,67 @@
// 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/android/android.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 _com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener_SUB extends java_lang_Object with com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener {}
mixin com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener on java_lang_Object {
static com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener subInstance() => _com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener_SUB();
static Future<com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener> anonymous__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.OnDistanceSearchListener::createAnonymous__');
final __object__ = AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener>(__result__)!;
// handle callback
MethodChannel('com.amap.api.services.route.DistanceSearch.OnDistanceSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec)
.setMethodCallHandler((methodCall) async {
try {
final args = methodCall.arguments as Map;
switch (methodCall.method) {
case 'onDistanceSearched_':
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart-callback: __object__.onDistanceSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
}
// handle the native call
__object__.onDistanceSearched?.call(AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DistanceResult>(args['var1']), args['var2']);
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(com_amap_api_services_route_DistanceResult? var1, int? var2)? onDistanceSearched;
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_route_District extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.District';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_District> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_District__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_District>(__result__)!;
}
static Future<List<com_amap_api_services_route_District>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_District__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_District>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_District>()
.toList() ?? <com_amap_api_services_route_District>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getDistrictName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.District@$refId::getDistrictName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::getDistrictName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistrictName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.District@$refId::setDistrictName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::setDistrictName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getDistrictAdcode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.District@$refId::getDistrictAdcode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::getDistrictAdcode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistrictAdcode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.District@$refId::setDistrictAdcode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::setDistrictAdcode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_District{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_District_Batch on List<com_amap_api_services_route_District?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getDistrictName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::getDistrictName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setDistrictName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::setDistrictName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getDistrictAdcode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::getDistrictAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setDistrictAdcode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.District::setDistrictAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_route_Doorway extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.Doorway';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_Doorway> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_Doorway__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Doorway>(__result__)!;
}
static Future<List<com_amap_api_services_route_Doorway>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_Doorway__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Doorway>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_Doorway>()
.toList() ?? <com_amap_api_services_route_Doorway>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Doorway@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Doorway@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLatLonPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Doorway@$refId::getLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::getLatLonPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setLatLonPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Doorway@$refId::setLatLonPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::setLatLonPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_Doorway{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_Doorway_Batch on List<com_amap_api_services_route_Doorway?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLatLonPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::getLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setLatLonPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Doorway::setLatLonPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,419 @@
// 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/android/android.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 com_amap_api_services_route_DrivePath extends com_amap_api_services_route_Path with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DrivePath';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DrivePath> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DrivePath__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePath>(__result__)!;
}
static Future<List<com_amap_api_services_route_DrivePath>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DrivePath__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePath>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DrivePath>()
.toList() ?? <com_amap_api_services_route_DrivePath>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getStrategy() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::getStrategy([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getStrategy', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setStrategy(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::setStrategy([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setStrategy', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTolls() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::getTolls([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getTolls', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTolls(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::setTolls([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setTolls', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTollDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::getTollDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getTollDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTollDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::setTollDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setTollDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getTotalTrafficlights() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::getTotalTrafficlights([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getTotalTrafficlights', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTotalTrafficlights(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::setTotalTrafficlights([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setTotalTrafficlights', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_DriveStep>?> getSteps() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::getSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getSteps', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_DriveStep>().toList();
}
Future<void> setSteps(List<com_amap_api_services_route_DriveStep> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::setSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setSteps', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getRestriction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::getRestriction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getRestriction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRestriction(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePath@$refId::setRestriction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setRestriction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DrivePath{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DrivePath_Batch on List<com_amap_api_services_route_DrivePath?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getStrategy_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getStrategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setStrategy_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setStrategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTolls_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getTolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTolls_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setTolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTollDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getTollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTollDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setTollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getTotalTrafficlights_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getTotalTrafficlights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setTotalTrafficlights_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setTotalTrafficlights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_DriveStep>?>> getSteps_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_DriveStep>().toList()).cast<List<com_amap_api_services_route_DriveStep>?>().toList();
}
Future<List<void>> setSteps_batch(List<List<com_amap_api_services_route_DriveStep>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getRestriction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::getRestriction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setRestriction_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePath::setRestriction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,419 @@
// 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/android/android.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 com_amap_api_services_route_DrivePathV2 extends com_amap_api_services_route_Path with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DrivePathV2';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DrivePathV2> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DrivePathV2__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePathV2>(__result__)!;
}
static Future<List<com_amap_api_services_route_DrivePathV2>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DrivePathV2__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePathV2>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DrivePathV2>()
.toList() ?? <com_amap_api_services_route_DrivePathV2>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_route_ElecConsumeInfo?> getElecConsumeInfo() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::getElecConsumeInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getElecConsumeInfo', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ElecConsumeInfo>(__result__);
}
Future<void> setElecConsumeInfo(com_amap_api_services_route_ElecConsumeInfo var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::setElecConsumeInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setElecConsumeInfo', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_ChargeStationInfo>?> getChargeStationInfo() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::getChargeStationInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getChargeStationInfo', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ChargeStationInfo>(it)).where((e) => e != null).cast<com_amap_api_services_route_ChargeStationInfo>().toList();
}
Future<void> setChargeStationInfo(List<com_amap_api_services_route_ChargeStationInfo> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::setChargeStationInfo([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setChargeStationInfo', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_Cost?> getCost() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::getCost([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getCost', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Cost>(__result__);
}
Future<void> setCost(com_amap_api_services_route_Cost var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::setCost([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setCost', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getStrategy() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::getStrategy([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getStrategy', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setStrategy(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::setStrategy([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setStrategy', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_DriveStepV2>?> getSteps() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::getSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getSteps', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStepV2>(it)).where((e) => e != null).cast<com_amap_api_services_route_DriveStepV2>().toList();
}
Future<void> setSteps(List<com_amap_api_services_route_DriveStepV2> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::setSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setSteps', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getRestriction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::getRestriction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getRestriction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRestriction(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePathV2@$refId::setRestriction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setRestriction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DrivePathV2{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DrivePathV2_Batch on List<com_amap_api_services_route_DrivePathV2?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_ElecConsumeInfo?>> getElecConsumeInfo_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getElecConsumeInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ElecConsumeInfo>(__result__)).cast<com_amap_api_services_route_ElecConsumeInfo?>().toList();
}
Future<List<void>> setElecConsumeInfo_batch(List<com_amap_api_services_route_ElecConsumeInfo> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setElecConsumeInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_ChargeStationInfo>?>> getChargeStationInfo_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getChargeStationInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ChargeStationInfo>(it)).where((e) => e != null).cast<com_amap_api_services_route_ChargeStationInfo>().toList()).cast<List<com_amap_api_services_route_ChargeStationInfo>?>().toList();
}
Future<List<void>> setChargeStationInfo_batch(List<List<com_amap_api_services_route_ChargeStationInfo>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setChargeStationInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_Cost?>> getCost_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Cost>(__result__)).cast<com_amap_api_services_route_Cost?>().toList();
}
Future<List<void>> setCost_batch(List<com_amap_api_services_route_Cost> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getStrategy_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getStrategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setStrategy_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setStrategy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_DriveStepV2>?>> getSteps_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStepV2>(it)).where((e) => e != null).cast<com_amap_api_services_route_DriveStepV2>().toList()).cast<List<com_amap_api_services_route_DriveStepV2>?>().toList();
}
Future<List<void>> setSteps_batch(List<List<com_amap_api_services_route_DriveStepV2>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getRestriction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::getRestriction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setRestriction_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePathV2::setRestriction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_route_DrivePlanPath extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DrivePlanPath';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DrivePlanPath> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DrivePlanPath__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanPath>(__result__)!;
}
static Future<List<com_amap_api_services_route_DrivePlanPath>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DrivePlanPath__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanPath>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DrivePlanPath>()
.toList() ?? <com_amap_api_services_route_DrivePlanPath>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanPath@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanPath@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTrafficLights() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanPath@$refId::getTrafficLights([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::getTrafficLights', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTrafficLights(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanPath@$refId::setTrafficLights([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::setTrafficLights', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_DrivePlanStep>?> getSteps() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanPath@$refId::getSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::getSteps', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePlanStep>().toList();
}
Future<void> setSteps(List<com_amap_api_services_route_DrivePlanStep> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanPath@$refId::setSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::setSteps', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DrivePlanPath{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DrivePlanPath_Batch on List<com_amap_api_services_route_DrivePlanPath?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTrafficLights_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::getTrafficLights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTrafficLights_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::setTrafficLights_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_DrivePlanStep>?>> getSteps_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::getSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePlanStep>().toList()).cast<List<com_amap_api_services_route_DrivePlanStep>?>().toList();
}
Future<List<void>> setSteps_batch(List<List<com_amap_api_services_route_DrivePlanStep>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanPath::setSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,363 @@
// 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/android/android.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 com_amap_api_services_route_DrivePlanStep extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DrivePlanStep';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DrivePlanStep> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DrivePlanStep__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanStep>(__result__)!;
}
static Future<List<com_amap_api_services_route_DrivePlanStep>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DrivePlanStep__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanStep>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DrivePlanStep>()
.toList() ?? <com_amap_api_services_route_DrivePlanStep>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getRoad() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::getRoad([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getRoad', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAdCode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::setAdCode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setAdCode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAdCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::getAdCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getAdCode', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRoad(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::setRoad([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setRoad', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<bool?> getToll() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::getToll([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getToll', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setToll(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::setToll([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setToll', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyline() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::getPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getPolyline', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setPolyline(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DrivePlanStep@$refId::setPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setPolyline', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DrivePlanStep{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DrivePlanStep_Batch on List<com_amap_api_services_route_DrivePlanStep?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getRoad_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAdCode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setAdCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAdCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getAdCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setRoad_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<bool?>> getToll_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getToll_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<void>> setToll_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setToll_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyline_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::getPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setPolyline_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DrivePlanStep::setPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,223 @@
// 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/android/android.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 com_amap_api_services_route_DriveRoutePlanResult extends com_amap_api_services_route_RoutePlanResult with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DriveRoutePlanResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DriveRoutePlanResult> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DriveRoutePlanResult__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveRoutePlanResult>(__result__)!;
}
static Future<List<com_amap_api_services_route_DriveRoutePlanResult>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DriveRoutePlanResult__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveRoutePlanResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DriveRoutePlanResult>()
.toList() ?? <com_amap_api_services_route_DriveRoutePlanResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_DrivePlanPath>?> getPaths() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRoutePlanResult@$refId::getPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::getPaths', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanPath>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePlanPath>().toList();
}
Future<void> setPaths(List<com_amap_api_services_route_DrivePlanPath> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRoutePlanResult@$refId::setPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::setPaths', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_TimeInfo>?> getTimeInfos() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRoutePlanResult@$refId::getTimeInfos([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::getTimeInfos', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TimeInfo>(it)).where((e) => e != null).cast<com_amap_api_services_route_TimeInfo>().toList();
}
Future<void> setTimeInfos(List<com_amap_api_services_route_TimeInfo> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRoutePlanResult@$refId::setTimeInfos([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::setTimeInfos', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setDrivePlanQuery(com_amap_api_services_route_RouteSearch_DrivePlanQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRoutePlanResult@$refId::setDrivePlanQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::setDrivePlanQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DriveRoutePlanResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DriveRoutePlanResult_Batch on List<com_amap_api_services_route_DriveRoutePlanResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<List<com_amap_api_services_route_DrivePlanPath>?>> getPaths_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::getPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePlanPath>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePlanPath>().toList()).cast<List<com_amap_api_services_route_DrivePlanPath>?>().toList();
}
Future<List<void>> setPaths_batch(List<List<com_amap_api_services_route_DrivePlanPath>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::setPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_TimeInfo>?>> getTimeInfos_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::getTimeInfos_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TimeInfo>(it)).where((e) => e != null).cast<com_amap_api_services_route_TimeInfo>().toList()).cast<List<com_amap_api_services_route_TimeInfo>?>().toList();
}
Future<List<void>> setTimeInfos_batch(List<List<com_amap_api_services_route_TimeInfo>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::setTimeInfos_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setDrivePlanQuery_batch(List<com_amap_api_services_route_RouteSearch_DrivePlanQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRoutePlanResult::setDrivePlanQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_route_DriveRouteResult extends com_amap_api_services_route_RouteResult with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DriveRouteResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DriveRouteResult> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DriveRouteResult__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveRouteResult>(__result__)!;
}
static Future<List<com_amap_api_services_route_DriveRouteResult>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DriveRouteResult__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveRouteResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DriveRouteResult>()
.toList() ?? <com_amap_api_services_route_DriveRouteResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getTaxiCost() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResult@$refId::getTaxiCost([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::getTaxiCost', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTaxiCost(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResult@$refId::setTaxiCost([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::setTaxiCost', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_DrivePath>?> getPaths() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResult@$refId::getPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::getPaths', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePath>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePath>().toList();
}
Future<void> setPaths(List<com_amap_api_services_route_DrivePath> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResult@$refId::setPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::setPaths', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_RouteSearch_DriveRouteQuery?> getDriveQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResult@$refId::getDriveQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::getDriveQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearch_DriveRouteQuery>(__result__);
}
Future<void> setDriveQuery(com_amap_api_services_route_RouteSearch_DriveRouteQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResult@$refId::setDriveQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::setDriveQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DriveRouteResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DriveRouteResult_Batch on List<com_amap_api_services_route_DriveRouteResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getTaxiCost_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::getTaxiCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTaxiCost_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::setTaxiCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_DrivePath>?>> getPaths_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::getPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePath>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePath>().toList()).cast<List<com_amap_api_services_route_DrivePath>?>().toList();
}
Future<List<void>> setPaths_batch(List<List<com_amap_api_services_route_DrivePath>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::setPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_RouteSearch_DriveRouteQuery?>> getDriveQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::getDriveQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearch_DriveRouteQuery>(__result__)).cast<com_amap_api_services_route_RouteSearch_DriveRouteQuery?>().toList();
}
Future<List<void>> setDriveQuery_batch(List<com_amap_api_services_route_RouteSearch_DriveRouteQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResult::setDriveQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_route_DriveRouteResultV2 extends com_amap_api_services_route_RouteResult with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DriveRouteResultV2';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DriveRouteResultV2> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DriveRouteResultV2__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveRouteResultV2>(__result__)!;
}
static Future<List<com_amap_api_services_route_DriveRouteResultV2>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DriveRouteResultV2__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveRouteResultV2>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DriveRouteResultV2>()
.toList() ?? <com_amap_api_services_route_DriveRouteResultV2>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<double?> getTaxiCost() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResultV2@$refId::getTaxiCost([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::getTaxiCost', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTaxiCost(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResultV2@$refId::setTaxiCost([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::setTaxiCost', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_DrivePathV2>?> getPaths() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResultV2@$refId::getPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::getPaths', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePathV2>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePathV2>().toList();
}
Future<void> setPaths(List<com_amap_api_services_route_DrivePathV2> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResultV2@$refId::setPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::setPaths', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_RouteSearchV2_DriveRouteQuery?> getDriveQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResultV2@$refId::getDriveQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::getDriveQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearchV2_DriveRouteQuery>(__result__);
}
Future<void> setDriveQuery(com_amap_api_services_route_RouteSearchV2_DriveRouteQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveRouteResultV2@$refId::setDriveQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::setDriveQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DriveRouteResultV2{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DriveRouteResultV2_Batch on List<com_amap_api_services_route_DriveRouteResultV2?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<double?>> getTaxiCost_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::getTaxiCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTaxiCost_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::setTaxiCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_DrivePathV2>?>> getPaths_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::getPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DrivePathV2>(it)).where((e) => e != null).cast<com_amap_api_services_route_DrivePathV2>().toList()).cast<List<com_amap_api_services_route_DrivePathV2>?>().toList();
}
Future<List<void>> setPaths_batch(List<List<com_amap_api_services_route_DrivePathV2>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::setPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_RouteSearchV2_DriveRouteQuery?>> getDriveQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::getDriveQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearchV2_DriveRouteQuery>(__result__)).cast<com_amap_api_services_route_RouteSearchV2_DriveRouteQuery?>().toList();
}
Future<List<void>> setDriveQuery_batch(List<com_amap_api_services_route_RouteSearchV2_DriveRouteQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveRouteResultV2::setDriveQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,811 @@
// 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/android/android.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 com_amap_api_services_route_DriveStep extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DriveStep';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DriveStep> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DriveStep__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStep>(__result__)!;
}
static Future<List<com_amap_api_services_route_DriveStep>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DriveStep__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStep>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DriveStep>()
.toList() ?? <com_amap_api_services_route_DriveStep>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getInstruction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getInstruction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getInstruction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setInstruction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setInstruction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setInstruction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getOrientation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getOrientation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getOrientation', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setOrientation(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setOrientation([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setOrientation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getRoad() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getRoad([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getRoad', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRoad(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setRoad([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setRoad', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTolls() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getTolls([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTolls', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTolls(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setTolls([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTolls', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getTollDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getTollDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTollDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTollDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setTollDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTollDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getTollRoad() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getTollRoad([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTollRoad', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setTollRoad(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setTollRoad([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTollRoad', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDuration() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getDuration([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getDuration', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDuration(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setDuration([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setDuration', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyline() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getPolyline', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setPolyline(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setPolyline', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getAction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getAction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setAction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setAction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAssistantAction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getAssistantAction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getAssistantAction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAssistantAction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setAssistantAction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setAssistantAction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_RouteSearchCity>?> getRouteSearchCityList() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getRouteSearchCityList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getRouteSearchCityList', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearchCity>(it)).where((e) => e != null).cast<com_amap_api_services_route_RouteSearchCity>().toList();
}
Future<void> setRouteSearchCityList(List<com_amap_api_services_route_RouteSearchCity> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setRouteSearchCityList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setRouteSearchCityList', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_TMC>?> getTMCs() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::getTMCs([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTMCs', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TMC>(it)).where((e) => e != null).cast<com_amap_api_services_route_TMC>().toList();
}
Future<void> setTMCs(List<com_amap_api_services_route_TMC> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStep@$refId::setTMCs([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTMCs', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DriveStep{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DriveStep_Batch on List<com_amap_api_services_route_DriveStep?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getInstruction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getInstruction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setInstruction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setInstruction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getOrientation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setOrientation_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getRoad_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setRoad_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTolls_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTolls_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTolls_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getTollDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setTollDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTollDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getTollRoad_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTollRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setTollRoad_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTollRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDuration_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDuration_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyline_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setPolyline_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAssistantAction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getAssistantAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAssistantAction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setAssistantAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_RouteSearchCity>?>> getRouteSearchCityList_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getRouteSearchCityList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearchCity>(it)).where((e) => e != null).cast<com_amap_api_services_route_RouteSearchCity>().toList()).cast<List<com_amap_api_services_route_RouteSearchCity>?>().toList();
}
Future<List<void>> setRouteSearchCityList_batch(List<List<com_amap_api_services_route_RouteSearchCity>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setRouteSearchCityList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_TMC>?>> getTMCs_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::getTMCs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TMC>(it)).where((e) => e != null).cast<com_amap_api_services_route_TMC>().toList()).cast<List<com_amap_api_services_route_TMC>?>().toList();
}
Future<List<void>> setTMCs_batch(List<List<com_amap_api_services_route_TMC>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStep::setTMCs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,587 @@
// 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/android/android.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 com_amap_api_services_route_DriveStepV2 extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.DriveStepV2';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_DriveStepV2> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_DriveStepV2__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStepV2>(__result__)!;
}
static Future<List<com_amap_api_services_route_DriveStepV2>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_DriveStepV2__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_DriveStepV2>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_DriveStepV2>()
.toList() ?? <com_amap_api_services_route_DriveStepV2>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_route_Navi?> getNavi() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getNavi([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getNavi', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Navi>(__result__);
}
Future<void> setNavi(com_amap_api_services_route_Navi var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setNavi([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setNavi', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_Cost?> getCostDetail() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getCostDetail([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getCostDetail', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Cost>(__result__);
}
Future<void> setCostDetail(com_amap_api_services_route_Cost var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setCostDetail([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setCostDetail', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getStepDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getStepDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getStepDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setStepDistance(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setStepDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setStepDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getInstruction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getInstruction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getInstruction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setInstruction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setInstruction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setInstruction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getOrientation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getOrientation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getOrientation', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setOrientation(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setOrientation([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setOrientation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getRoad() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getRoad([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getRoad', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRoad(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setRoad([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setRoad', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyline() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getPolyline', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setPolyline(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setPolyline', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_RouteSearchCity>?> getRouteSearchCityList() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getRouteSearchCityList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getRouteSearchCityList', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearchCity>(it)).where((e) => e != null).cast<com_amap_api_services_route_RouteSearchCity>().toList();
}
Future<void> setRouteSearchCityList(List<com_amap_api_services_route_RouteSearchCity> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setRouteSearchCityList([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setRouteSearchCityList', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_route_TMC>?> getTMCs() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::getTMCs([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getTMCs', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TMC>(it)).where((e) => e != null).cast<com_amap_api_services_route_TMC>().toList();
}
Future<void> setTMCs(List<com_amap_api_services_route_TMC> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.DriveStepV2@$refId::setTMCs([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setTMCs', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_DriveStepV2{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_DriveStepV2_Batch on List<com_amap_api_services_route_DriveStepV2?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_Navi?>> getNavi_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getNavi_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Navi>(__result__)).cast<com_amap_api_services_route_Navi?>().toList();
}
Future<List<void>> setNavi_batch(List<com_amap_api_services_route_Navi> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setNavi_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_Cost?>> getCostDetail_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getCostDetail_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Cost>(__result__)).cast<com_amap_api_services_route_Cost?>().toList();
}
Future<List<void>> setCostDetail_batch(List<com_amap_api_services_route_Cost> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setCostDetail_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getStepDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getStepDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setStepDistance_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setStepDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getInstruction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getInstruction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setInstruction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setInstruction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getOrientation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setOrientation_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getRoad_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setRoad_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyline_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setPolyline_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_RouteSearchCity>?>> getRouteSearchCityList_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getRouteSearchCityList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearchCity>(it)).where((e) => e != null).cast<com_amap_api_services_route_RouteSearchCity>().toList()).cast<List<com_amap_api_services_route_RouteSearchCity>?>().toList();
}
Future<List<void>> setRouteSearchCityList_batch(List<List<com_amap_api_services_route_RouteSearchCity>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setRouteSearchCityList_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_route_TMC>?>> getTMCs_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::getTMCs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_TMC>(it)).where((e) => e != null).cast<com_amap_api_services_route_TMC>().toList()).cast<List<com_amap_api_services_route_TMC>?>().toList();
}
Future<List<void>> setTMCs_batch(List<List<com_amap_api_services_route_TMC>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DriveStepV2::setTMCs_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,307 @@
// 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/android/android.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 com_amap_api_services_route_ElecConsumeInfo extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.route.ElecConsumeInfo';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_ElecConsumeInfo> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_ElecConsumeInfo__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ElecConsumeInfo>(__result__)!;
}
static Future<List<com_amap_api_services_route_ElecConsumeInfo>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_ElecConsumeInfo__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_ElecConsumeInfo>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_ElecConsumeInfo>()
.toList() ?? <com_amap_api_services_route_ElecConsumeInfo>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<int?> getConsumeEnergy() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::getConsumeEnergy([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getConsumeEnergy', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setConsumeEnergy(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::setConsumeEnergy([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setConsumeEnergy', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getRunOutStepIndex() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::getRunOutStepIndex([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getRunOutStepIndex', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRunOutStepIndex(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::setRunOutStepIndex([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setRunOutStepIndex', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getRunOutPoint() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::getRunOutPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getRunOutPoint', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<void> setRunOutPoint(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::setRunOutPoint([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setRunOutPoint', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<int>?> getLeftEnergy() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::getLeftEnergy([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getLeftEnergy', {"__this__": this});
// handle native call
return (__result__ as List?)?.cast<int>();
}
Future<void> setLeftEnergy(List<int> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.ElecConsumeInfo@$refId::setLeftEnergy([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setLeftEnergy', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_ElecConsumeInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_ElecConsumeInfo_Batch on List<com_amap_api_services_route_ElecConsumeInfo?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<int?>> getConsumeEnergy_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getConsumeEnergy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setConsumeEnergy_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setConsumeEnergy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getRunOutStepIndex_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getRunOutStepIndex_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setRunOutStepIndex_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setRunOutStepIndex_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getRunOutPoint_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getRunOutPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<void>> setRunOutPoint_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setRunOutPoint_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<int>?>> getLeftEnergy_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::getLeftEnergy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.cast<int>()).cast<List<int>?>().toList();
}
Future<List<void>> setLeftEnergy_batch(List<List<int>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.ElecConsumeInfo::setLeftEnergy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_route_Navi extends java_lang_Object {
//region constants
static const String name__ = 'com.amap.api.services.route.Navi';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_Navi> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_Navi__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Navi>(__result__)!;
}
static Future<List<com_amap_api_services_route_Navi>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_Navi__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Navi>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_Navi>()
.toList() ?? <com_amap_api_services_route_Navi>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getAction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Navi@$refId::getAction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::getAction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Navi@$refId::setAction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::setAction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAssistantAction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Navi@$refId::getAssistantAction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::getAssistantAction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAssistantAction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Navi@$refId::setAssistantAction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::setAssistantAction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_Navi{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_Navi_Batch on List<com_amap_api_services_route_Navi?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getAction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::getAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::setAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAssistantAction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::getAssistantAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAssistantAction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Navi::setAssistantAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,251 @@
// 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/android/android.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 com_amap_api_services_route_Path extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.Path';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_Path> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_Path__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Path>(__result__)!;
}
static Future<List<com_amap_api_services_route_Path>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_Path__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Path>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_Path>()
.toList() ?? <com_amap_api_services_route_Path>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyline() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Path@$refId::getPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::getPolyline', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setPolyline(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Path@$refId::setPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::setPolyline', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Path@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Path@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getDuration() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Path@$refId::getDuration([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::getDuration', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDuration(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Path@$refId::setDuration([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::setDuration', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_Path{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_Path_Batch on List<com_amap_api_services_route_Path?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyline_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::getPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setPolyline_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::setPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getDuration_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setDuration_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Path::setDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_route_Railway extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.Railway';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_Railway> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_Railway__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Railway>(__result__)!;
}
static Future<List<com_amap_api_services_route_Railway>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_Railway__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_Railway>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_Railway>()
.toList() ?? <com_amap_api_services_route_Railway>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getID() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Railway@$refId::getID([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::getID', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Railway@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setID(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Railway@$refId::setID([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::setID', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.Railway@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_Railway{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_Railway_Batch on List<com_amap_api_services_route_Railway?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getID_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::getID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setID_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::setID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.Railway::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,139 @@
// 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/android/android.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 com_amap_api_services_route_RailwaySpace extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.RailwaySpace';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_RailwaySpace> create__String__float(String var1, double var2) async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_RailwaySpace__String__float',
{"var1": var1, "var2": var2}
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RailwaySpace>(__result__)!;
}
static Future<List<com_amap_api_services_route_RailwaySpace>> create_batch__String__float(List<String> var1, List<double> var2) async {
assert(var1.length == var2.length);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_RailwaySpace__String__float',
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RailwaySpace>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_RailwaySpace>()
.toList() ?? <com_amap_api_services_route_RailwaySpace>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getCode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwaySpace@$refId::getCode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwaySpace::getCode', {"__this__": this});
// handle native call
return __result__;
}
Future<double?> getCost() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwaySpace@$refId::getCost([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwaySpace::getCost', {"__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_RailwaySpace{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_RailwaySpace_Batch on List<com_amap_api_services_route_RailwaySpace?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getCode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwaySpace::getCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<double?>> getCost_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwaySpace::getCost_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
//endregion
}

View File

@ -0,0 +1,531 @@
// 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/android/android.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 com_amap_api_services_route_RailwayStationItem extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.RailwayStationItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_RailwayStationItem> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_RailwayStationItem__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RailwayStationItem>(__result__)!;
}
static Future<List<com_amap_api_services_route_RailwayStationItem>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_RailwayStationItem__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RailwayStationItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_RailwayStationItem>()
.toList() ?? <com_amap_api_services_route_RailwayStationItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getID() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::getID([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getID', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getName() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::getName([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getName', {"__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_core_LatLonPoint?> getLocation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::getLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getLocation', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__);
}
Future<String?> getAdcode() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::getAdcode([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getAdcode', {"__this__": this});
// handle native call
return __result__;
}
Future<String?> getTime() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::getTime([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getTime', {"__this__": this});
// handle native call
return __result__;
}
Future<bool?> isStart() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::isStart([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::isStart', {"__this__": this});
// handle native call
return __result__;
}
Future<bool?> isEnd() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::isEnd([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::isEnd', {"__this__": this});
// handle native call
return __result__;
}
Future<double?> getWait() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::getWait([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getWait', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setID(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setID([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setID', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setName(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setName([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setName', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setLocation(com_amap_api_services_core_LatLonPoint var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setLocation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setLocation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setAdcode(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setAdcode([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setAdcode', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setTime(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setTime([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setTime', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setisStart(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setisStart([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setisStart', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setisEnd(bool var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setisEnd([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setisEnd', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<void> setWait(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RailwayStationItem@$refId::setWait([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setWait', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_RailwayStationItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_RailwayStationItem_Batch on List<com_amap_api_services_route_RailwayStationItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getID_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getName_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<com_amap_api_services_core_LatLonPoint?>> getLocation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(__result__)).cast<com_amap_api_services_core_LatLonPoint?>().toList();
}
Future<List<String?>> getAdcode_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<String?>> getTime_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<bool?>> isStart_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::isStart_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<bool?>> isEnd_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::isEnd_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
}
Future<List<double?>> getWait_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::getWait_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setID_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setName_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setLocation_batch(List<com_amap_api_services_core_LatLonPoint> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setAdcode_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setTime_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setisStart_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setisStart_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setisEnd_batch(List<bool> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setisEnd_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<void>> setWait_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RailwayStationItem::setWait_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,139 @@
// 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/android/android.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 com_amap_api_services_route_RidePath extends com_amap_api_services_route_Path with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.RidePath';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_RidePath> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_RidePath__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RidePath>(__result__)!;
}
static Future<List<com_amap_api_services_route_RidePath>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_RidePath__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RidePath>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_RidePath>()
.toList() ?? <com_amap_api_services_route_RidePath>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_RideStep>?> getSteps() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RidePath@$refId::getSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RidePath::getSteps', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RideStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_RideStep>().toList();
}
Future<void> setSteps(List<com_amap_api_services_route_RideStep> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RidePath@$refId::setSteps([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RidePath::setSteps', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_RidePath{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_RidePath_Batch on List<com_amap_api_services_route_RidePath?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<List<com_amap_api_services_route_RideStep>?>> getSteps_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RidePath::getSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RideStep>(it)).where((e) => e != null).cast<com_amap_api_services_route_RideStep>().toList()).cast<List<com_amap_api_services_route_RideStep>?>().toList();
}
Future<List<void>> setSteps_batch(List<List<com_amap_api_services_route_RideStep>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RidePath::setSteps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,195 @@
// 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/android/android.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 com_amap_api_services_route_RideRouteResult extends com_amap_api_services_route_RouteResult with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.RideRouteResult';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_RideRouteResult> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_RideRouteResult__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RideRouteResult>(__result__)!;
}
static Future<List<com_amap_api_services_route_RideRouteResult>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_RideRouteResult__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RideRouteResult>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_RideRouteResult>()
.toList() ?? <com_amap_api_services_route_RideRouteResult>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_route_RidePath>?> getPaths() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideRouteResult@$refId::getPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::getPaths', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RidePath>(it)).where((e) => e != null).cast<com_amap_api_services_route_RidePath>().toList();
}
Future<void> setPaths(List<com_amap_api_services_route_RidePath> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideRouteResult@$refId::setPaths([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::setPaths', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_route_RouteSearch_RideRouteQuery?> getRideQuery() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideRouteResult@$refId::getRideQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::getRideQuery', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearch_RideRouteQuery>(__result__);
}
Future<void> setRideQuery(com_amap_api_services_route_RouteSearch_RideRouteQuery var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideRouteResult@$refId::setRideQuery([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::setRideQuery', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_RideRouteResult{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_RideRouteResult_Batch on List<com_amap_api_services_route_RideRouteResult?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<List<com_amap_api_services_route_RidePath>?>> getPaths_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::getPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RidePath>(it)).where((e) => e != null).cast<com_amap_api_services_route_RidePath>().toList()).cast<List<com_amap_api_services_route_RidePath>?>().toList();
}
Future<List<void>> setPaths_batch(List<List<com_amap_api_services_route_RidePath>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::setPaths_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_route_RouteSearch_RideRouteQuery?>> getRideQuery_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::getRideQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteSearch_RideRouteQuery>(__result__)).cast<com_amap_api_services_route_RouteSearch_RideRouteQuery?>().toList();
}
Future<List<void>> setRideQuery_batch(List<com_amap_api_services_route_RouteSearch_RideRouteQuery> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideRouteResult::setRideQuery_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,531 @@
// 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/android/android.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 com_amap_api_services_route_RideStep extends java_lang_Object with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.RideStep';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_RideStep> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_RideStep__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RideStep>(__result__)!;
}
static Future<List<com_amap_api_services_route_RideStep>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_RideStep__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RideStep>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_RideStep>()
.toList() ?? <com_amap_api_services_route_RideStep>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<String?> getInstruction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getInstruction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getInstruction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setInstruction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setInstruction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setInstruction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getOrientation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getOrientation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getOrientation', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setOrientation(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setOrientation([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setOrientation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getRoad() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getRoad([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getRoad', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setRoad(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setRoad([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setRoad', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDistance() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getDistance([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getDistance', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDistance(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setDistance([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setDistance', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDuration() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getDuration([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getDuration', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDuration(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setDuration([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setDuration', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyline() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getPolyline', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setPolyline(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setPolyline', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getAction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getAction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setAction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setAction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<String?> getAssistantAction() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::getAssistantAction([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getAssistantAction', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setAssistantAction(String var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RideStep@$refId::setAssistantAction([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setAssistantAction', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_RideStep{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_RideStep_Batch on List<com_amap_api_services_route_RideStep?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<String?>> getInstruction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getInstruction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setInstruction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setInstruction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getOrientation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setOrientation_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getRoad_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setRoad_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setRoad_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDistance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDistance_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setDistance_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDuration_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDuration_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyline_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setPolyline_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<String?>> getAssistantAction_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::getAssistantAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
}
Future<List<void>> setAssistantAction_batch(List<String> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RideStep::setAssistantAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

View File

@ -0,0 +1,419 @@
// 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/android/android.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 com_amap_api_services_route_RouteBusLineItem extends com_amap_api_services_busline_BusLineItem with android_os_Parcelable {
//region constants
static const String name__ = 'com.amap.api.services.route.RouteBusLineItem';
@override
final String tag__ = 'amap_search_fluttify';
//endregion
//region creators
static Future<com_amap_api_services_route_RouteBusLineItem> create__() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod(
'ObjectFactory::createcom_amap_api_services_route_RouteBusLineItem__',
);
return AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusLineItem>(__result__)!;
}
static Future<List<com_amap_api_services_route_RouteBusLineItem>> create_batch__(int length) async {
assert(true);
final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod(
'ObjectFactory::create_batchcom_amap_api_services_route_RouteBusLineItem__',
{'length': length}
);
return __result_batch__
?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_route_RouteBusLineItem>(it))
.where((element) => element !=null)
.cast<com_amap_api_services_route_RouteBusLineItem>()
.toList() ?? <com_amap_api_services_route_RouteBusLineItem>[];
}
//endregion
//region getters
//endregion
//region setters
//endregion
//region methods
Future<com_amap_api_services_busline_BusStationItem?> getDepartureBusStation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::getDepartureBusStation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getDepartureBusStation', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(__result__);
}
Future<void> setDepartureBusStation(com_amap_api_services_busline_BusStationItem var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::setDepartureBusStation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setDepartureBusStation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<com_amap_api_services_busline_BusStationItem?> getArrivalBusStation() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::getArrivalBusStation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getArrivalBusStation', {"__this__": this});
// handle native call
return AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(__result__);
}
Future<void> setArrivalBusStation(com_amap_api_services_busline_BusStationItem var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::setArrivalBusStation([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setArrivalBusStation', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_core_LatLonPoint>?> getPolyline() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::getPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getPolyline', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList();
}
Future<void> setPolyline(List<com_amap_api_services_core_LatLonPoint> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::setPolyline([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setPolyline', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<int?> getPassStationNum() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::getPassStationNum([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getPassStationNum', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setPassStationNum(int var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::setPassStationNum([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setPassStationNum', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<List<com_amap_api_services_busline_BusStationItem>?> getPassStations() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::getPassStations([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getPassStations', {"__this__": this});
// handle native call
return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusStationItem>().toList();
}
Future<void> setPassStations(List<com_amap_api_services_busline_BusStationItem> var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::setPassStations([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setPassStations', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
Future<double?> getDuration() async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::getDuration([])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getDuration', {"__this__": this});
// handle native call
return __result__;
}
Future<void> setDuration(double var1) async {
// print log
if (fluttifyLogEnabled) {
debugPrint('fluttify-dart: com.amap.api.services.route.RouteBusLineItem@$refId::setDuration([\'var1\':$var1])');
}
// invoke native method
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setDuration', {"var1": var1, "__this__": this});
// handle native call
return __result__;
}
//endregion
@override
String toString() {
return 'com_amap_api_services_route_RouteBusLineItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
}
}
extension com_amap_api_services_route_RouteBusLineItem_Batch on List<com_amap_api_services_route_RouteBusLineItem?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
//endregion
//region setters
//endregion
//region methods
Future<List<com_amap_api_services_busline_BusStationItem?>> getDepartureBusStation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getDepartureBusStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(__result__)).cast<com_amap_api_services_busline_BusStationItem?>().toList();
}
Future<List<void>> setDepartureBusStation_batch(List<com_amap_api_services_busline_BusStationItem> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setDepartureBusStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<com_amap_api_services_busline_BusStationItem?>> getArrivalBusStation_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getArrivalBusStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(__result__)).cast<com_amap_api_services_busline_BusStationItem?>().toList();
}
Future<List<void>> setArrivalBusStation_batch(List<com_amap_api_services_busline_BusStationItem> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setArrivalBusStation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_core_LatLonPoint>?>> getPolyline_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_core_LatLonPoint>(it)).where((e) => e != null).cast<com_amap_api_services_core_LatLonPoint>().toList()).cast<List<com_amap_api_services_core_LatLonPoint>?>().toList();
}
Future<List<void>> setPolyline_batch(List<List<com_amap_api_services_core_LatLonPoint>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<int?>> getPassStationNum_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getPassStationNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
}
Future<List<void>> setPassStationNum_batch(List<int> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setPassStationNum_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<List<com_amap_api_services_busline_BusStationItem>?>> getPassStations_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getPassStations_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_busline_BusStationItem>(it)).where((e) => e != null).cast<com_amap_api_services_busline_BusStationItem>().toList()).cast<List<com_amap_api_services_busline_BusStationItem>?>().toList();
}
Future<List<void>> setPassStations_batch(List<List<com_amap_api_services_busline_BusStationItem>> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setPassStations_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
Future<List<double?>> getDuration_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::getDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
}
Future<List<void>> setDuration_batch(List<double> var1) async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteBusLineItem::setDuration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
}
//endregion
}

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