setImageInfos method

Future<void> setImageInfos({
  1. TransformConfigs? activeHistory,
  2. bool? forceUpdate,
})

Sets the image information data.

This method decodes image information based on the current editor state and configuration, ensuring accurate metadata extraction.

Implementation

Future<void> setImageInfos({
  TransformConfigs? activeHistory,
  bool? forceUpdate,
}) async {
  if (imageInfos == null || forceUpdate == true) {
    imageInfos = (await decodeImageInfos(
      bytes: await editorImage.safeByteArray(context),
      screenSize: editorBodySize,
      configs: activeHistory,
    ));
  }
}