delivery_workforce 1.0.0
delivery_workforce: ^1.0.0 copied to clipboard
A production-grade Delivery & Workforce domain package.
delivery_workforce
A pure domain package for modeling and managing a delivery workforce using Clean Architecture and Domain-Driven Design (DDD) principles.
This package focuses on business rules, not frameworks or infrastructure. It is suitable for backend systems, logistics platforms, and serious Flutter/Dart applications.
β¨ What This Package Solves
Delivery agent lifecycle management
Delivery assignment creation and state transitions
Route and time-slot modeling
Policy-based assignment rules
Domain events for delivery outcomes
Fully testable, framework-agnostic design
π§ Design Philosophy
This package follows Clean Architecture and DDD:
Domain-first
No framework dependencies
Business rules are explicit and enforced
Infrastructure is replaceable
If youβre looking for UI widgets, APIs, or database logic β this package is not for that. lib/ βββ delivery_workforce.dart // Public entry point βββ src/ βββ domain/ β βββ entities/ β β βββ delivery_agent.dart β β βββ delivery_assignment.dart β β βββ route.dart β β β βββ value_objects/ β β βββ delivery_agent_id.dart β β βββ assignment_id.dart β β βββ route_id.dart β β βββ geo_area.dart β β βββ time_slot.dart β β β βββ enums/ β β βββ agent_role.dart β β βββ agent_status.dart β β βββ assignment_status.dart β β β βββ policies/ β β βββ assignment_policy.dart β β β βββ events/ β βββ assignment_completed.dart β βββ assignment_failed.dart β βββ ports/ β βββ clock.dart β βββ performance_sink_port.dart β βββ services/ β βββ assignment_management_service.dart β βββ infrastructure/ βββ system_clock.dart