ComponentReference class sealed
Một component người dùng @mention — một mục của payload.references
(component-mentions-design §3.2). Bốn loại: MarkerReference,
PopupReference, RouteReference, TripPlanReference.
Là dữ liệu, không phải lệnh. Dựng từ Component Memory bằng
buildComponentReferences; trước khi gửi luôn qua normalizeReferences
(AiShareMapRemote.ask tự làm).
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Id trong Component Memory.
final
- label → String
-
Tên người dùng thấy — chính là token
@<label>(≤ 120).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
"marker"·"popup"·"route"·"trip-plan".no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → ComponentReference? -
Đọc lỏng một mục JSON (hoặc trả nguyên một ComponentReference): chỉ
kiểm kiểu Dart — giới hạn của schema do normalizeReferences áp. Loại
lạ, thiếu khoá bắt buộc →
null; khoá tuỳ chọn sai kiểu bị bỏ.