19 lines
620 B
Dart
19 lines
620 B
Dart
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
|
|
|
/// The [StreamAttachmentPackage] class is basically meant to wrap
|
|
/// individual attachments with their corresponding message
|
|
class StreamAttachmentPackage {
|
|
/// Default constructor to prepare an [StreamAttachmentPackage] object
|
|
StreamAttachmentPackage({
|
|
required this.attachment,
|
|
required this.message,
|
|
});
|
|
|
|
/// This is the individual attachment
|
|
final Attachment attachment;
|
|
|
|
/// This is the message that the attachment belongs to
|
|
/// The message object may have attachemnt(s) other than the one packaged
|
|
final Message message;
|
|
}
|