22 lines
555 B
Dart
22 lines
555 B
Dart
import 'package:equatable/equatable.dart';
|
|
|
|
class CommentModel extends Equatable {
|
|
final String id;
|
|
final String userName;
|
|
final double rating;
|
|
final String comment;
|
|
final DateTime publishedAt;
|
|
final List<String> uploadedImageUrls;
|
|
|
|
const CommentModel({
|
|
required this.id,
|
|
required this.userName,
|
|
required this.rating,
|
|
required this.comment,
|
|
required this.publishedAt,
|
|
this.uploadedImageUrls = const [],
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [id, userName, rating, comment, publishedAt, uploadedImageUrls];
|
|
} |