getNextNextTurnImage method

Uint8List? getNextNextTurnImage({
  1. Size? size,
  2. ImageFileFormat? format,
})

Simplified schematic image for the turn after the next one.

Returns a simplified turn icon for the second upcoming maneuver. For a detailed geometry image, use nextNextTurnDetails.abstractGeometryImg. Returns null if unavailable. Always check hasNextNextTurnInfo first.

Parameters

  • size: (Size?) Desired image dimensions.
  • format: (ImageFileFormat?) Image format (PNG, JPEG, etc.).

Returns

  • (Uint8List?) Turn image data, or null if not available.

See also:

Implementation

Uint8List? getNextNextTurnImage({
  final Size? size,
  final ImageFileFormat? format,
}) {
  return GemKitPlatform.instance.callGetImage(
    pointerId,
    'NavigationInstructionGetNextNextTurnImage',
    size?.width.toInt() ?? -1,
    size?.height.toInt() ?? -1,
    format?.id ?? -1,
  );
}