DateTimeField constructor

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

Implementation

DateTimeField({
  required super.name,
  this.isCreatedAtField = false,
  this.isUpdatedAtField = false,
  String? id,
  super.showInList,
  super.isRequired,
  super.sort,
  super.validator,
  super.type = FieldType.dateField,
}) : super(id: id ?? toSnakeCase(name));