Valida constructor

const Valida({
  1. bool? nullableErrorLists,
  2. bool? constErrors,
  3. bool? enumFields,
  4. List<ValidaError> customValidate(
    1. Object?
    )?,
  5. String? customValidateName,
})

Implementation

const Valida({
  bool? nullableErrorLists,
  bool? constErrors,
  bool? enumFields,
  this.customValidate,
  this.customValidateName,
})  : nullableErrorLists = nullableErrorLists ?? false,
      constErrors = constErrors ?? false,
      enumFields = enumFields ?? true;