nextTurnImg property
Get the image of the immediate next turn as a Img.
Prefer Img when you need SDK-managed metadata (uid, recommended size/aspectRatio, scalability) or to request raw image bytes; use getNextTurnImage when you only need raw image bytes.
Returns
- (Img) Turn image object (validate before use).
See also:
- getNextTurnImage - Simpler method to get turn image bytes.
- nextNextTurnImg - Image for the turn after next.
Implementation
Img get nextTurnImg {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getNextTurnImg',
);
return Img.init(resultString['result']);
}