createSimpleVideoMessage static method

dynamic createSimpleVideoMessage(
  1. String videoFilePath,
  2. dynamic file
)

Implementation

static createSimpleVideoMessage(
  String videoFilePath,
  dynamic file,
) async {
  return {
    "elemType": 5,
    "type": "video",
    "videoElem": {
      "videoFilePath": videoFilePath,
      "file": file ?? await createFile(path: videoFilePath),
    }
  };
}