SearchUtil class

地图查询工具类 再封装

Constructors

SearchUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

calculate({required List<LatLng> wayPoints, int? strategy, CalculateCallBack? calculateBack}) → void
paging<T>(List<T> list, int page, int limit) List<T>
分页page 1 开始
pagingLast<T>(List<T> list, int page, int limit) → T
planning({required List<LatLng> wayPoints, int? strategy, PlanningCallBack? planningBack}) → void
route({required List<LatLng> wayPoints, int? strategy, PlanningCallBack? planningBack, CalculateCallBack? calculateBack}) → void
routePlanningDraw({required List<PlanItem> itemList, String? lineImgPath, Color? lineColor, String? pathlineId, required AMapUIController uiController, required AMapController mapController, OnComplete? onComplete}) → void
线路规划 一键绘制 不建议使用一键绘制,最好使用线路规划接口获取点位后参考下面自己绘制
routeSearchPage({required List<LatLng> wayPoints, int? strategy, int? showFields, RouteResultBack? back}) Future<void>
truckRouteSearchPage({required List<LatLng> wayPoints, int? drivingMode, TruckInfo? truckInfo, int? showFields, RouteResultBack? back}) Future<void>