ChatUser constructor

ChatUser({
  1. required String id,
  2. required String name,
  3. String? profilePhoto,
  4. String defaultAvatarImage = profileImage,
  5. ImageType imageType = ImageType.network,
  6. AssetImageErrorBuilder? assetImageErrorBuilder,
  7. NetworkImageErrorBuilder? networkImageErrorBuilder,
  8. NetworkImageProgressIndicatorBuilder? networkImageProgressIndicatorBuilder,
})

Implementation

ChatUser({
  required this.id,
  required this.name,
  this.profilePhoto,
  this.defaultAvatarImage = profileImage,
  this.imageType = ImageType.network,
  this.assetImageErrorBuilder,
  this.networkImageErrorBuilder,
  this.networkImageProgressIndicatorBuilder,
});