VMessageUploadModel class
A model that represents a message upload.
Constructors
-
VMessageUploadModel({required List<
PartValue> body, required String roomId, required String msgLocalId, MultipartFile? file1, MultipartFile? file2}) -
Constructs a new
VMessageUploadModel
instance.const
Properties
-
body
→ List<
PartValue> -
The body of the message.
final
- file1 → MultipartFile?
-
The first file associated with the message, if applicable.
final
- file2 → MultipartFile?
-
The second file associated with the message, if applicable.
final
- hashCode → int
-
Generates a hashcode based on the message's local ID.
no setteroverride
- msgLocalId → String
-
The local ID of the message.
final
- roomId → String
-
The ID of the room where the message is being sent.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< PartValue> ? body, MultipartFile? file1, MultipartFile? file2, String? roomId, String? msgLocalId}) → VMessageUploadModel -
Returns a copy of this
VMessageUploadModel
but with the given fields replaced with the new values. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Overrides the equality operator for better comparison capabilities.
override