isTypeNull function

Validator isTypeNull()

Returns a Validator that checks if the given value null

Implementation

Validator isTypeNull() {
  return (value) => Result(
        isValid: value == null,
        expected: 'null',
        value: value,
      );
}