ChatMessage class
Constructors
- ChatMessage({String text = '', ChatMedia? chatMedia, required bool isSender, DateTime? createdAt})
- ChatMessage.fromJson(String source)
-
factory
-
ChatMessage.fromMap(Map<
String, dynamic> map) -
factory
Properties
- chatMedia → ChatMedia?
-
final
- createdAt ↔ DateTime?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- isSender → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String
-
please note that only one of the following
text,imageUrl,imagePath,audioUrl,audioPath
must not be null at a time if more is provided an error will occurgetter/setter pair
Methods
-
copyWith(
{String? text, ChatMedia? chatMedia, bool? isSender, DateTime? createdAt}) → ChatMessage -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant ChatMessage other) → bool -
The equality operator.
override