PrecisionScaleValidation extension
Extension on LucidValidationBuilder for num properties to add a precision/scale validation.
Methods
-
precisionScale(
int precision, int scale, {bool ignoreTrailingZeros = false, String? message, String? code}) → SimpleValidationBuilder< num> -
Available on SimpleValidationBuilder<
Adds a validation rule that checks if the num does not exceed the givennum> , provided by the PrecisionScaleValidation extensionprecision(total number of digits) andscale(number of decimal places).