getTurnImage method

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

Retrieve a raster image representing the turn symbol.

Parameters

  • size: Desired image dimensions. When null a default size is returned.
  • format: Desired image format, or null for platform default.

Returns

  • Uint8List?: raw image bytes for the turn symbol, or null when unavailable.

Implementation

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