// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast ////////////////////////////////////////////////////////// // GENERATED BY FLUTTIFY. DO NOT EDIT IT. ////////////////////////////////////////////////////////// import 'dart:typed_data'; import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:foundation_fluttify/foundation_fluttify.dart'; import 'package:core_location_fluttify/core_location_fluttify.dart'; import 'package:amap_core_fluttify/amap_core_fluttify.dart'; class AMapTrafficEvaluation extends AMapSearchObject with NSCoding, NSCopying { //region constants static const String name__ = 'AMapTrafficEvaluation'; @override final String tag__ = 'amap_search_fluttify'; //endregion //region creators static Future create__({ bool init = true /* ios only */ }) async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 'ObjectFactory::createAMapTrafficEvaluation', {'init': init} ); return AmapSearchFluttifyIOSAs(__result__)!; } static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { assert(true); final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 'ObjectFactory::create_batchAMapTrafficEvaluation', {'length': length, 'init': init} ); return __result_batch__ ?.map((it) => AmapSearchFluttifyIOSAs(it)) .where((element) => element !=null) .cast() .toList() ?? []; } //endregion //region getters Future get_evaluationDescription() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_evaluationDescription", {'__this__': this}); return __result__; } Future get_status() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_status", {'__this__': this}); return __result__; } Future get_expedite() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_expedite", {'__this__': this}); return __result__; } Future get_congested() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_congested", {'__this__': this}); return __result__; } Future get_blocked() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_blocked", {'__this__': this}); return __result__; } Future get_unknown() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_unknown", {'__this__': this}); return __result__; } //endregion //region setters Future set_evaluationDescription(String evaluationDescription) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_evaluationDescription', {'__this__': this, "evaluationDescription": evaluationDescription}); } Future set_status(int status) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_status', {'__this__': this, "status": status}); } Future set_expedite(String expedite) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_expedite', {'__this__': this, "expedite": expedite}); } Future set_congested(String congested) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_congested', {'__this__': this, "congested": congested}); } Future set_blocked(String blocked) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_blocked', {'__this__': this, "blocked": blocked}); } Future set_unknown(String unknown) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_unknown', {'__this__': this, "unknown": unknown}); } //endregion //region methods //endregion @override String toString() { return 'AMapTrafficEvaluation{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; } } extension AMapTrafficEvaluation_Batch on List { String? get refId { if (isEmpty) return null; return first?.refId; } //region getters Future> get_evaluationDescription_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_evaluationDescription_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_status_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_status_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_expedite_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_expedite_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_congested_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_congested_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_blocked_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_blocked_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_unknown_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapTrafficEvaluation::get_unknown_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } //endregion //region setters Future set_evaluationDescription_batch(List evaluationDescription) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_evaluationDescription_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "evaluationDescription": evaluationDescription[__i__]}]); } Future set_status_batch(List status) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_status_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "status": status[__i__]}]); } Future set_expedite_batch(List expedite) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_expedite_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "expedite": expedite[__i__]}]); } Future set_congested_batch(List congested) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_congested_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "congested": congested[__i__]}]); } Future set_blocked_batch(List blocked) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_blocked_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "blocked": blocked[__i__]}]); } Future set_unknown_batch(List unknown) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapTrafficEvaluation::set_unknown_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "unknown": unknown[__i__]}]); } //endregion //region methods //endregion }