ChatUser class

Annotations

Constructors

ChatUser({required String id, required String name, String defaultAvatarImage = Constants.profileImage, ImageType imageType = ImageType.network, String? profilePhoto, AssetImageErrorBuilder? assetImageErrorBuilder, NetworkImageErrorBuilder? networkImageErrorBuilder, NetworkImageProgressIndicatorBuilder? networkImageProgressIndicatorBuilder})
const
ChatUser.fromJson(Map<String, dynamic> json, {ChatUserConfigBase? config})
factory

Properties

assetImageErrorBuilder → AssetImageErrorBuilder?
Error builder to build error widget for asset image
final
defaultAvatarImage → String
Field to set default image if network url for profile image not provided
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
Provides id of user.
final
imageType → ImageType
Field to define image type.
final
name → String
Provides name of user.
final
networkImageErrorBuilder → NetworkImageErrorBuilder?
Error builder to build error widget for network image
final
networkImageProgressIndicatorBuilder → NetworkImageProgressIndicatorBuilder?
Progress indicator builder for network image
final
profilePhoto → String?
Provides profile picture as network URL or asset of user. Or Provides profile picture's data in base64 string.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, String? name, String? profilePhoto, ImageType? imageType, String? defaultAvatarImage, bool forceNullValue = false}) → ChatUser
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({ChatUserConfigBase? config}) → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override