ended7월 24일· 1 sources

A public const constructor is the back door around your factory's validation

Why it matters

You put your validation in a factory. Schema.string(pattern: ...) checks that the pattern is a real regex before it hands you an object. Schema.enumeration(values) refuses an empty list and copies the...

1
Sources
+0
24h
Growth
59d
Active

Sources

Related Issues