createSimpleImageMessage static method

dynamic createSimpleImageMessage(
  1. Map params
)

Implementation

static createSimpleImageMessage(Map params) async {
  return {
    "elemType": 3,
    "type": "image",
    "imageElem": {
      "file": params["inputElement"] ??
          await createFile(
            path: params["imagePath"],
            name: params["imageName"],
          ),
    }
  };
}