RoadInfo class Routes & Navigation

Road information object.

A small value object that describes a road label used in route and instruction contexts. It packages the human‑readable road name together with the shield/marker classification used to pick an icon or rendering style for UI displays and signage.

Constructors

RoadInfo.new({required String roadname, required RoadShieldType shieldtype})
RoadInfo.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
roadname String
The name of the road.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shieldtype RoadShieldType
The road shield type.
getter/setter pair

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.
inherited

Operators

operator ==(covariant RoadInfo other) bool
The equality operator.
override