MessageFactory class abstract

A factory for creating VBaseMessage instances.

This factory is used to generate VBaseMessage instances based on a provided map and message type. It supports both remote and local message creation, as well as the creation of upload messages.

Constructors

MessageFactory()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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
The equality operator.
inherited

Static Methods

createBaseMessage(Map<String, dynamic> map) VBaseMessage
Creates a VBaseMessage instance from the provided map.
createForwardUploadMessage(VBaseMessage msg) Future<VMessageUploadModel>
Creates a VMessageUploadModel instance for a forwarded message from the provided VBaseMessage instance.
createUploadMessage(VBaseMessage msg) Future<VMessageUploadModel>
Creates a VMessageUploadModel instance from the provided VBaseMessage instance.