isTrue<T> static method

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

Creates an IsTrue validation rule.

This rule checks if a boolean value is true. support bool, String, and num types. It can include a custom validation message.

Implementation

static ValidationRule<T> isTrue<T>({String? message}) =>
    IsTrue<T>(message: message);