BooleanSchema constructor

BooleanSchema({
  1. bool? defaultValue,
  2. String? description,
  3. String? title,
  4. Map<String, Object?>? extra,
})

Implementation

BooleanSchema({
  bool? defaultValue,
  String? description,
  String? title,
  Map<String, Object?>? extra,
}) : super.build({
        ...?extra,
        if (defaultValue != null) 'default': $encode(defaultValue),
        if (description != null) 'description': $encode(description),
        if (title != null) 'title': $encode(title),
        'type': 'boolean',
      });