Max constructor

const Max(
  1. num max, {
  2. bool inclusive = true,
})

Validator that checks if a num value is (equals or) below a maximum. (see inclusive)

Implementation

const Max(num max, {super.inclusive}) : super(max: max);