Max constructor

Max(
  1. num number
)

Creates an instance of the Max validation rule with a specified number.

Parameters:

  • number: The maximum length allowed for the value.

Implementation

Max(this.number) : super.withKey(key);