Schema.nullableBoolean constructor

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

Creates a Schema for a nullable boolean.

Implementation

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