Digits constructor
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);