ChatUser class
Constructors
- ChatUser({required String id, required String name, String? profilePhoto, String defaultAvatarImage = profileImage, ImageType imageType = ImageType.network, AssetImageErrorBuilder? assetImageErrorBuilder, NetworkImageErrorBuilder? networkImageErrorBuilder, NetworkImageProgressIndicatorBuilder? networkImageProgressIndicatorBuilder})
-
ChatUser.fromJson(Map<
String, dynamic> json) -
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 setterinherited
- id → String
-
Provides id of user.
final
- imageType → ImageType
-
Field to define image type
network, asset or base64
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(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited