IsTrue<T> constructor

IsTrue<T>({
  1. String? message,
})

Creates a new instance of the IsTrue validation rule.

  • message A custom validation message (optional) to be displayed when the validation fails.

Implementation

IsTrue({String? message}) : super(message);