Id constructor
const
Id({
- bool autoIncrement = true,
- IDStrategy? strategy = IDStrategy.autoIncrement,
Implementation
const Id({
this.autoIncrement = true,
this.strategy = IDStrategy.autoIncrement,
}) : assert(
autoIncrement && strategy != IDStrategy.uuid,
'autoIncrement is true but strategy is uuid,should use another strategy',
);