BMFMassTransitRouteLine class
此类表示一条公共交通路线
- Inheritance
-
- Object
- BMFRouteLine
- BMFMassTransitRouteLine
Constructors
-
BMFMassTransitRouteLine({int? distance, BMFTime? duration, BMFRouteNode? starting, BMFRouteNode? terminal, String? title, List<
BMFMassTransitStep> ? steps, double? price}) - 有参构造
- BMFMassTransitRouteLine.fromMap(Map map)
- map => BMFMassTransitRouteLine
Properties
- distance ↔ int?
-
路线长度 单位: 米
getter/setter pairinherited
- duration ↔ BMFTime?
-
路线耗时 单位: 秒
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- price ↔ double?
-
路线花费
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- starting ↔ BMFRouteNode?
-
路线起点信息
getter/setter pairinherited
-
steps
↔ List<
BMFMassTransitStep> ? -
路线中的所有路段
getter/setter pair
- terminal ↔ BMFRouteNode?
-
路线终点信息
getter/setter pairinherited
- title ↔ String?
-
路线名称(预留字段,现为空)
getter/setter pairinherited
Methods
-
fromMap(
Map map) → dynamic -
map -> dynamic
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> -
model -> map
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited