graphicFieldImageByTypeSourcePageIndex method

Future<Uint8List?> graphicFieldImageByTypeSourcePageIndex(
  1. GraphicFieldType fieldType,
  2. ResultType source,
  3. int pageIndex
)

Allows you to get an image of a graphic field based on a source type and page index.

Implementation

Future<Uint8List?> graphicFieldImageByTypeSourcePageIndex(
  GraphicFieldType fieldType,
  ResultType source,
  int pageIndex,
) async {
  String? result = await _bridge.invokeMethod(
    "graphicFieldImageByTypeSourcePageIndex",
    [
      rawResult,
      fieldType.value,
      source.value,
      pageIndex,
    ],
  );
  if (result == null) return null;
  return _bytesFromBase64(result);
}