DigitsBetween constructor

DigitsBetween(
  1. num min,
  2. num max, {
  3. String? message,
})

Creates a new instance of the DigitsBetween validation rule.

  • min: The minimum allowed number of digits (inclusive).
  • max: The maximum allowed number of digits (inclusive).
  • message: A custom validation message (optional) to be displayed when the validation fails.

Implementation

DigitsBetween(this.min, this.max, {String? message}) : super(message);