getImage method

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

Get the image of this SignpostDetails.

Parameters

Returns

  • The image if it is available, otherwise null.

Throws

  • An exception if it fails.

Implementation

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