34 lines
864 B
Dart
34 lines
864 B
Dart
/// 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];
|
|
}
|