BoolField constructor

BoolField({
  1. required String name,
  2. String? id,
  3. bool defaultValue = false,
  4. bool isRequired = false,
  5. bool showInList = false,
  6. int sort = 0,
  7. FormFieldValidator<Object>? validator,
  8. FieldType type = FieldType.boolField,
})

Implementation

BoolField({
  required super.name,
  String? id,
  this.defaultValue = false,
  super.isRequired,
  super.showInList,
  super.sort,
  super.validator,
  super.type = FieldType.boolField,
}) : super(id: id ?? toSnakeCase(name));