Schema.boolean constructor

Schema.boolean({
  1. String? title,
  2. String? description,
  3. List? examples,
  4. bool? readOnly,
  5. bool? writeOnly,
  6. bool? $default,
})

Creates a Schema for a boolean.

Implementation

factory Schema.boolean({
  String? title,
  String? description,
  List<dynamic>? examples,
  bool? readOnly,
  bool? writeOnly,
  bool? $default,
}) => Schema(
  type: 'boolean',
  title: title,
  description: description,
  examples: examples,
  readOnly: readOnly,
  writeOnly: writeOnly,
  $default: $default,
);