boolean static method
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);