BMFRouteLine class

此类表示路线数据结构的基类,表示一条路线,路线可能包括:路线规划中的换乘/驾车/步行路线 此类为路线数据结构的基类,一般关注其子类对象即可,无需直接生成该类对象

Implementers

Constructors

BMFRouteLine({int? distance, BMFTime? duration, BMFRouteNode? starting, BMFRouteNode? terminal, String? title})
有参构造
BMFRouteLine.fromMap(Map map)
map => BMFRouteLine

Properties

distance ↔ int?
路线长度 单位: 米
read / write
duration BMFTime?
路线耗时 单位: 秒
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
starting BMFRouteNode?
路线起点信息
read / write
terminal BMFRouteNode?
路线终点信息
read / write
title ↔ String?
路线名称(预留字段,现为空)
read / write

Methods

fromMap(Map map) → dynamic
map -> dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
model -> map
toString() → String
A string representation of this object.
inherited

Operators

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