getLaneImage method

Uint8List? getLaneImage({
  1. Size? size,
  2. ImageFileFormat? format,
  3. LaneImageRenderSettings renderSettings = const LaneImageRenderSettings(),
})

Get an image representation of current lane configuration.

Returns

  • The lane image if lane information is available
  • null if no image is available

Throws

  • An exception if it fails.

Implementation

Uint8List? getLaneImage({
  final Size? size,
  final ImageFileFormat? format,
  final LaneImageRenderSettings renderSettings =
      const LaneImageRenderSettings(),
}) {
  return GemKitPlatform.instance.callGetImage(
    pointerId,
    'NavigationInstructionGetLaneImage',
    size?.width.toInt() ?? -1,
    size?.height.toInt() ?? -1,
    format?.id ?? -1,
    arg: jsonEncode(renderSettings),
  );
}