VLiteral<T> constructor

VLiteral<T>(
  1. T _expected, {
  2. String? message,
  3. String? invalidTypeMessage,
})

Creates a literal validator that only accepts _expected.

Pass message to override the default translation used when the input is null.

Implementation

VLiteral(this._expected, {super.message, super.invalidTypeMessage});