16 lines
338 B
Dart
16 lines
338 B
Dart
class CommentModel {
|
|
final String userId;
|
|
final String userName;
|
|
final String? userAvatar;
|
|
final String text;
|
|
final DateTime createdAt;
|
|
|
|
CommentModel({
|
|
required this.userId,
|
|
required this.userName,
|
|
this.userAvatar,
|
|
required this.text,
|
|
DateTime? createdAt,
|
|
}) : createdAt = createdAt ?? DateTime.now();
|
|
}
|