createVideoMessage method Null safety

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createVideoMessage(
  1. {required String videoFilePath,
  2. required String type,
  3. required int duration,
  4. required String snapshotPath,
  5. String? fileName,
  6. Uint8List? fileContent}
)

Create video file videoFilePath path type video type, such as mp4 mov etc. duration video duration, unit s snapshotPath video cover image path fileName file name (onlyweb sideused and required) fileContent byte array (onlyweb sideused and required)

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createVideoMessage({
  required String videoFilePath,
  required String type,
  required int duration,
  required String snapshotPath,
  String? fileName,
  Uint8List? fileContent,
}) async {
  return ImFlutterPlatform.instance.createVideoMessage(
    videoFilePath: videoFilePath,
    type: type,
    duration: duration,
    snapshotPath: snapshotPath,
    fileName: fileName,
    fileContent: fileContent,
  );
}