getImage method
- Size? size,
- ImageFileFormat? format,
- SignpostImageRenderSettings renderSettings = const SignpostImageRenderSettings(),
Get the image of this SignpostDetails.
Parameters
- IN size The image sizes
- IN format ImageFileFormat of the image.
- IN renderSettings SignpostImageRenderSettings of the image.
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),
);
}