add
This commit is contained in:
33
lib/features/projects/domain/entities/project_status.dart
Normal file
33
lib/features/projects/domain/entities/project_status.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
/// Project Status Entity
|
||||
///
|
||||
/// Represents a project status option from the API.
|
||||
library;
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
/// Project Status Entity
|
||||
///
|
||||
/// Similar to OrderStatus - represents status options for project submissions.
|
||||
class ProjectStatus extends Equatable {
|
||||
/// Status value (e.g., "Pending approval", "Approved", "Rejected", "Cancelled")
|
||||
final String status;
|
||||
|
||||
/// Vietnamese label (e.g., "Chờ phê duyệt", "Đã được phê duyệt", "Từ chối", "HỦY BỎ")
|
||||
final String label;
|
||||
|
||||
/// Color indicator (e.g., "Warning", "Success", "Danger")
|
||||
final String color;
|
||||
|
||||
/// Display order index
|
||||
final int index;
|
||||
|
||||
const ProjectStatus({
|
||||
required this.status,
|
||||
required this.label,
|
||||
required this.color,
|
||||
required this.index,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object?> get props => [status, label, color, index];
|
||||
}
|
||||
Reference in New Issue
Block a user