getRoadInfoImg method
Get the road info image as a Img.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes;
Parameters
info: (List<RoadInfo>) Road information list to render.
Returns
- (Img) Image representation of the road information.
See also:
- currentRoadInformation - Current road info.
- nextRoadInformation - Next road info.
Implementation
Img getRoadInfoImg(List<RoadInfo> info) {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getRoadInfoImg',
args: info,
);
return Img.init(resultString['result']);
}