From 7e56f8cdb0af15b735e05ec0ef8ddcb3d00a5b6c Mon Sep 17 00:00:00 2001 From: Joan Pablo Date: Fri, 10 May 2024 17:37:30 -0400 Subject: [PATCH] Prepare for new release - Add missing Doc Strings in NumberValidator - Add missing doc in Changelog --- CHANGELOG.md | 3 ++- lib/src/validators/number_validator.dart | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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({