delivery_workforce 1.0.1 copy "delivery_workforce: ^1.0.1" to clipboard
delivery_workforce: ^1.0.1 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

0
likes
135
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A production-grade Delivery & Workforce domain package.

Documentation

API reference

License

MIT (license)

Dependencies

equatable

More

Packages that depend on delivery_workforce