User.fromUID constructor

User.fromUID({
  1. required String uid,
  2. required String name,
  3. String? avatar = '',
  4. String? link = '',
  5. String? role = 'default',
  6. String? status = 'offline',
  7. String? statusMessage = '',
  8. DateTime? lastActiveAt,
  9. List<String>? tags = const [],
  10. Map<String, dynamic>? metadata = const {},
  11. bool? hasBlockedMe = false,
  12. bool? blockedByMe = false,
})

Implementation

User.fromUID({
  required this.uid,
  required this.name,
  this.avatar = '',
  this.link = '',
  this.role = 'default',
  this.status = 'offline',
  this.statusMessage = '',
  this.lastActiveAt,
  this.tags = const [],
  this.metadata = const {},
  this.hasBlockedMe = false,
  this.blockedByMe = false,
});