36 lines
929 B
Dart
36 lines
929 B
Dart
/// Project Progress Entity
|
|
///
|
|
/// Represents a construction progress stage from the API.
|
|
/// Used for dropdown selection when creating/updating project submissions.
|
|
library;
|
|
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
/// Project Progress Entity
|
|
///
|
|
/// Contains construction progress stages:
|
|
/// - Chưa khởi công (Not started)
|
|
/// - Khởi công móng (Foundation started)
|
|
/// - Đang phần thô (Rough construction)
|
|
/// - Đang hoàn thiện (Finishing)
|
|
/// - Cất nóc (Roofing complete)
|
|
/// - Hoàn thiện (Completed)
|
|
class ProjectProgress extends Equatable {
|
|
/// Unique identifier (API: name)
|
|
final String id;
|
|
|
|
/// Progress status label in Vietnamese (API: status)
|
|
final String status;
|
|
|
|
const ProjectProgress({
|
|
required this.id,
|
|
required this.status,
|
|
});
|
|
|
|
@override
|
|
List<Object?> get props => [id, status];
|
|
|
|
@override
|
|
String toString() => 'ProjectProgress(id: $id, status: $status)';
|
|
}
|