add auth, format
This commit is contained in:
@@ -150,8 +150,7 @@ class DesignRequest {
|
||||
bool get hasAttachments => attachments.isNotEmpty;
|
||||
|
||||
/// Check if design is ready
|
||||
bool get hasDesign =>
|
||||
finalDesignLink != null && finalDesignLink!.isNotEmpty;
|
||||
bool get hasDesign => finalDesignLink != null && finalDesignLink!.isNotEmpty;
|
||||
|
||||
/// Check if user has provided feedback
|
||||
bool get hasFeedback => feedback != null || rating != null;
|
||||
@@ -231,13 +230,7 @@ class DesignRequest {
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return Object.hash(
|
||||
requestId,
|
||||
userId,
|
||||
projectName,
|
||||
area,
|
||||
status,
|
||||
);
|
||||
return Object.hash(requestId, userId, projectName, area, status);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -156,7 +156,8 @@ class ProjectSubmission {
|
||||
|
||||
/// Check if submission has been reviewed
|
||||
bool get isReviewed =>
|
||||
status == SubmissionStatus.approved || status == SubmissionStatus.rejected;
|
||||
status == SubmissionStatus.approved ||
|
||||
status == SubmissionStatus.rejected;
|
||||
|
||||
/// Check if submission has before photos
|
||||
bool get hasBeforePhotos => beforePhotos.isNotEmpty;
|
||||
@@ -229,13 +230,7 @@ class ProjectSubmission {
|
||||
|
||||
@override
|
||||
int get hashCode {
|
||||
return Object.hash(
|
||||
submissionId,
|
||||
userId,
|
||||
projectName,
|
||||
projectValue,
|
||||
status,
|
||||
);
|
||||
return Object.hash(submissionId, userId, projectName, projectValue, status);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user