FileMessage constructor
FileMessage({
- required String url,
- String? name,
- int? size = 0,
- String? type,
- List<
Thumbnail> ? thumbnails, - bool requireAuth = false,
- File? localFile,
- String? requestId,
- String? message,
- required int messageId,
- MessageSendingStatus? sendingStatus,
- Sender? sender,
- required String channelUrl,
- required ChannelType channelType,
- List<
User> mentionedUsers = const [], - List<
String> ? mentionedUserIds, - MentionType? mentionType,
- List<
String> ? requestedMentionUserIds, - int createdAt = 0,
- int updatedAt = 0,
- int? parentMessageId,
- String? parentMessageText,
- ThreadInfo? threadInfo,
- List<
MessageMetaArray> ? metaArrays, - String? customType,
- int? messageSurvivalSeconds,
- bool forceUpdateLastMessage = false,
- bool isSilent = false,
- int? errorCode,
- bool isOperatorMessage = false,
- String? data,
- OGMetaData? ogMetaData,
- List<
Reaction> ? reactions, - bool replyToChannel = false,
- Map<
String, dynamic> ? parentMessage, - bool isPinnedMessage = false,
Implementation
FileMessage({
required this.url,
this.name,
this.size = 0,
this.type,
this.thumbnails,
this.requireAuth = false,
this.localFile,
String? requestId,
String? message,
required int messageId,
MessageSendingStatus? sendingStatus,
Sender? sender,
required String channelUrl,
required ChannelType channelType,
List<User> mentionedUsers = const [],
List<String>? mentionedUserIds,
MentionType? mentionType,
List<String>? requestedMentionUserIds,
int createdAt = 0,
int updatedAt = 0,
int? parentMessageId,
String? parentMessageText,
ThreadInfo? threadInfo,
List<MessageMetaArray>? metaArrays,
String? customType,
int? messageSurvivalSeconds,
bool forceUpdateLastMessage = false,
bool isSilent = false,
int? errorCode,
bool isOperatorMessage = false,
String? data,
OGMetaData? ogMetaData,
List<Reaction>? reactions,
bool replyToChannel = false,
Map<String, dynamic>? parentMessage,
bool isPinnedMessage = false,
}) : super(
isPinnedMessage: isPinnedMessage,
parentMessage: parentMessage,
replyToChannel: replyToChannel,
requestId: requestId,
messageId: messageId,
message: message ?? '',
sendingStatus: sendingStatus,
sender: sender,
channelUrl: channelUrl,
channelType: channelType,
mentionedUsers: mentionedUsers,
mentionedUserIds: mentionedUserIds,
mentionType: mentionType,
requestedMentionUserIds: requestedMentionUserIds,
createdAt: createdAt,
updatedAt: updatedAt,
parentMessageId: parentMessageId,
parentMessageText: parentMessageText,
threadInfo: threadInfo,
metaArrays: metaArrays,
customType: customType,
messageSurvivalSeconds: messageSurvivalSeconds,
forceUpdateLastMessage: forceUpdateLastMessage,
isSilent: isSilent,
errorCode: errorCode,
isOperatorMessage: isOperatorMessage,
data: data,
ogMetaData: ogMetaData,
reactions: reactions,
);