sendImageMessage method Null safety
- {required String sessionId,
- required NIMSessionType sessionType,
- required String filePath,
- required int fileSize,
- String? displayName,
- NIMNosScene nosScene = NIMNosScenes.defaultIm,
- bool resend = false,
- MessageAction? action}
Send an image message.
Implementation
Future<NIMResult<NIMMessage>> sendImageMessage({
required String sessionId,
required NIMSessionType sessionType,
required String filePath,
required int fileSize,
String? displayName,
NIMNosScene nosScene = NIMNosScenes.defaultIm,
bool resend = false,
MessageAction? action,
}) async {
final message = NIMMessage.imageEmptyMessage(
sessionId: sessionId,
sessionType: sessionType,
filePath: filePath,
fileSize: fileSize,
displayName: displayName,
nosScene: nosScene,
);
return _createMessageAndSend(message, action, resend);
}