getImage method

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

Get the image of this SignpostDetails.

Parameters

Returns

  • The image if it is available, otherwise null.

Implementation

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