ComponentMemory class
Properties
-
byAnchor
→ Map<String, String>
-
markerId → popup
anchorTo nó (components doc 8.2, 10.12) — một-một:
Pha A giữ mỗi marker tối đa một popup neo.
final
-
byAnimatedMarker
→ Map<String, String>
-
markerId → animation cho nó chạy (15.2 luật 3: một marker tối đa một
binding trên toàn sổ — Pha A giữ một-một).
final
-
byAnimatedRoute
→ Map<String, Set<String>>
-
routeId → animation có binding trên route này (một route được nằm trong
nhiều animation — 15.2 luật 3).
final
-
byId
→ Map<String, ComponentEntry>
-
final
-
byOrigin
→ Map<String, Set<String>>
-
final
-
byOwner
→ Map<String, ({Set<String> along, Set<String> stops})>
-
routeId → điểm dừng / marker bám.
final
-
byPlan
→ Map<String, Set<String>>
-
planId → route của một
trip-plan (14.3, 10.12) — từ planOf của
route; thứ tự theo day đọc ở routesOf.
final
-
byRef
→ Map<String, Set<String>>
-
markerId → route có điểm dừng tham chiếu tới nó (route 1.2,
markerRef) — ghi theo id kể cả khi marker chưa tới.
final
-
byTag
→ Map<String, Set<String>>
-
final
-
byType
→ Map<String, Set<String>>
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
length
→ int
-
no setter
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
animationOf(String markerId)
→ String?
-
Animation đang cho marker
markerId chạy (tối đa một — 15.2 luật 3).
-
animationsOn(String routeId)
→ List<String>
-
Animation có binding trên route
routeId, theo thứ tự trong sổ.
-
clone()
→ ComponentMemory
-
Bản nháp: entry dùng chung (không sửa tại chỗ), chỉ mục chép.
-
count({String? type, String? origin, String? tag})
→ int
-
-
countsByOrigin()
→ Map<String, int>
-
-
countsByType()
→ Map<String, int>
-
-
delete(String id)
→ ComponentEntry?
-
-
dependentsOf(String routeId)
→ ({List<String> along, List<String> stops})
-
Marker phụ thuộc route: điểm dừng và marker bám.
-
get(String id)
→ ComponentEntry?
-
-
has(String id)
→ bool
-
-
list([ComponentQuery q = const ComponentQuery()])
→ List<ComponentEntry>
-
Liệt kê theo thứ tự
add (addedAt, rồi seq).
-
nextSeq(String type)
→ int
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
planBounds(String planId)
→ LngLatBounds?
-
Khung bao của kế hoạch = hợp khung bao mọi route của nó (14.4) —
null khi chưa route nào được biên dịch.
-
planRoutesSnapshot()
→ Map<String, List<String>>
-
Bản chụp
{planId: [routeId…]} của mọi kế hoạch — để sau một action so
xem kế hoạch nào co lại / hết route (14.3).
-
Popup đang
anchorTo một marker (tối đa một).
-
popupOf dạng danh sách — cho vòng lặp dây chuyền.
-
refsTo(String markerId)
→ List<String>
-
Route có điểm dừng tham chiếu tới marker
markerId (route 1.2), theo
thứ tự trong sổ (seq).
-
routesOf(String planId)
→ List<String>
-
Route của kế hoạch
planId, sắp theo day tăng dần (14.2); rỗng
khi không có kế hoạch / kế hoạch chưa có route.
-
set(ComponentEntry entry)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited