createFileMessage method Null safety

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createFileMessage(
  1. {required String filePath,
  2. required String fileName,
  3. Uint8List? fileContent}
)

create file message

Parameters: filePath file path fileName file name fileContent byte array (webend use, and required)

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createFileMessage(
    {required String filePath,
    required String fileName,
    Uint8List? fileContent}) async {
  return ImFlutterPlatform.instance.createFileMessage(
      filePath: filePath, fileName: fileName, fileContent: fileContent);
}