SelectorField constructor

SelectorField({
  1. required String name,
  2. required Model model,
  3. required List<TitleField> titleFields,
  4. String? virtualField,
  5. String? id,
  6. bool showInList = false,
  7. bool isRequired = false,
  8. int sort = 0,
  9. FormFieldValidator<Object>? validator,
  10. FieldType type = FieldType.selectorField,
})

Implementation

SelectorField({
  required super.name,
  required this.model,
  required this.titleFields,
  String? virtualField,
  String? id,
  super.showInList,
  super.isRequired,
  super.sort,
  super.validator,
  super.type = FieldType.selectorField,
})  : virtualField = virtualField ?? '\$${id ?? toSnakeCase(name)}',
      super(id: id ?? toSnakeCase(name));