value property
DesignRole
value
final
Defines the architectural role of a component within a system.
This enum helps categorize classes based on their responsibilities, making it easier to organize and reason about the system design.
Example
void assignRole(DesignRole role) {
if (role == DesignRole.APPLICATION) {
print("This is core application logic.");
} else if (role == DesignRole.SUPPORT) {
print("This is a supporting component.");
} else if (role == DesignRole.INFRASTRUCTURE) {
print("This provides infrastructure support.");
}
}
Implementation
final DesignRole value;