diff --git a/CHANGELOG.md b/CHANGELOG.md index 26714d6..cfea99c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 17.0.0+1 -- Reduce `intl` dependency constraint to match Flutter 3.16.0 +- Reduce `intl` dependency constraint to match Flutter 3.16.0. +- NumberValidator allows null values. # 17.0.0 diff --git a/lib/src/validators/number_validator.dart b/lib/src/validators/number_validator.dart index 10803c9..867b952 100644 --- a/lib/src/validators/number_validator.dart +++ b/lib/src/validators/number_validator.dart @@ -27,6 +27,7 @@ class NumberValidator extends Validator { /// Creates a new NumberValidator instance to validate strings representing numbers. /// + /// [allowNull] (optional): Whether the validator allows null values. /// [allowedDecimals] (optional): The allowed number of decimal places. Defaults to 0. /// [allowNegatives] (optional): Whether to allow negative numbers. Defaults to true. const NumberValidator({