createSimpleFileMessage static method
dynamic
createSimpleFileMessage({})
Implementation
static createSimpleFileMessage(
{required String filePath,
required String fileName,
dynamic file}) async {
return {
"elemType": 6,
"type": "file",
"fileElem": {
"filePath": filePath,
"fileName": fileName,
"file": file ??= await createFile(path: filePath, name: fileName)
}
};
}