ValidationErrorUtils constructor

const ValidationErrorUtils(
  1. String message, {
  2. String? code,
  3. String? path,
})

Creates an error with a human-readable message, optional machine-readable code, and optional path identifying the offending field.

Implementation

const ValidationErrorUtils(this.message, {String? code, String? path})
  : _code = code,
    _path = path;