validateDigits static method
Validates PostgreSQL-style column precision and scale declarations.
Implementation
static void validateDigits(int precision, int scale) {
if (precision < 1 || precision > 1000 || scale < -1000 || scale > 1000) {
throw ArgumentError(
'Decimal precision must be 1..1000 and scale -1000..1000.',
);
}
}