Schema.fromBoolean constructor
Creates a schema from a boolean value.
A true value creates a schema that allows any value, while a false
value creates a schema that allows no values.
Implementation
factory Schema.fromBoolean(bool value, {List<String> jsonPath = const []}) {
return Schema.fromMap(value ? {} : {'not': {}});
}