First Step Towards Rich Aggregates Or Rich Models, Specification Patterns
Specification Patterns
Specification patterns are all about constructing business rules in boolean logic statements. Which are somewhat equally useful both in CleanArch Rich Models and DDD Rich Aggregates.
This article will show how to implement specification patterns in Dart. Keep in mind that will mean that business logic is in two places in Rich Models or Rich Aggregates. Namely, the value object validation and the business rule validation as part of the creation of the Rich Model or Rich Aggregate.
Keep reading with a 7-day free trial
Subscribe to Fred’s Flutter Newsletter to keep reading this post and get 7 days of free access to the full post archives.