boolean static method

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

Creates a Boolean validation rule.

This rule checks if a string represents a boolean value ("true" or "false"). It can include a custom validation message.

Implementation

static ValidationRule<String> boolean({String? message}) =>
    Boolean(message: message);