BaseValidator<T> constructor

const BaseValidator<T>({
  1. String? errorText,
  2. bool checkNullOrEmpty = true,
})

Creates a new instance of the validator.

Implementation

const BaseValidator({String? errorText, this.checkNullOrEmpty = true})
  : _errorText = errorText;