roadInfo property
Road information associated with this instruction (name, shield, attributes).
Returns
List<RoadInfo>: list of road info objects describing signs, names or shields relevant to the instruction.
See also:
- roadInfoImg - the road info image in a RoadInfoImg format.
- hasRoadInfo - check if road information is available.
Implementation
List<RoadInfo> get roadInfo {
final OperationResult resultString = objectMethod(
pointerId,
'RouteInstructionBase',
'getRoadInfo',
);
final List<dynamic> res = resultString['result'];
final List<RoadInfo> retList = res
.map((dynamic e) => RoadInfo.fromJson(e))
.toList();
return retList;
}