ChatHelper class

Constructors

ChatHelper()

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

contentType({required String content, String? type = "message", num? size}) String
isText(String? type) bool
messageListUpdate(List<Message> data) List<Message>
messagesStatusUpdate({List<Message>? data, String? messageId, Status? status}) List<Message>
messageType({required User? user, required String? content, String? contentTrans, String? id, String? type = "text", Status? status = types.Status.seen, String? statusCall, bool? isVideo, bool? showStatus, String? title, String? timerCall, int? createdAt, num? size, Map<String, dynamic>? metadata}) Message
onSaveFileBase64Local({required String base64String, required String name, required String type, bool? isImage = true}) Future<FileInfoModel?>
onSaveFileUrlLocal({required String url, required String name}) Future<String>