graphicFieldImageByTypeSourcePageIndexLight method

Future<Uint8List?> graphicFieldImageByTypeSourcePageIndexLight(
  1. GraphicFieldType fieldType,
  2. ResultType source,
  3. int pageIndex,
  4. Lights light,
)

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

Implementation

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