boolean static method
Ensures the string represents a boolean value.
Implementation
static String? Function(String?) boolean({
String errorMessage = 'Please enter true or false',
}) {
return _build(errorMessage, (v) => v.isBoolean);
}
Ensures the string represents a boolean value.
static String? Function(String?) boolean({
String errorMessage = 'Please enter true or false',
}) {
return _build(errorMessage, (v) => v.isBoolean);
}