graphicFieldByTypeSourcePageIndexLight method

Future<GraphicField?> graphicFieldByTypeSourcePageIndexLight(
  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<GraphicField?> graphicFieldByTypeSourcePageIndexLight(
  GraphicFieldType fieldType,
  ResultType source,
  int pageIndex,
  Lights light,
) async {
  String? result = await _bridge.invokeMethod(
    "graphicFieldByTypeSourcePageIndex",
    [rawResult, fieldType.value, source.value, pageIndex, light.value],
  );
  if (result == null) return null;
  return GraphicField.fromJson(json.decode(result));
}