Size constructor

Size(
  1. int size, {
  2. String? message,
})

Creates a new instance of the Size validation rule.

  • size: The required size (length) for the string (required).
  • message: A custom validation message (optional) to be displayed when the validation fails.

Implementation

Size(this.size, {String? message}) : super(message);