Digits constructor

Digits(
  1. int digitLength, {
  2. String? message,
})

Creates a new instance of the Digits validation rule.

  • digitLength: The required number of digits (required).
  • message: A custom validation message (optional) to be displayed when the validation fails.

Implementation

Digits(this.digitLength, {String? message}) : super(message);