FieldModel constructor

FieldModel({
  1. required String type,
  2. required String key,
  3. dynamic label,
  4. dynamic placeholder,
  5. List<String> validators = const [],
  6. List<Map<String, dynamic>>? options,
  7. Map<String, dynamic>? localization,
  8. Map<String, dynamic>? visibleWhen,
  9. Map<String, dynamic>? extra,
  10. String? prefixIcon,
  11. String? suffixIcon,
  12. String? border,
  13. int? borderRadius,
  14. bool? filled,
  15. String? borderColor,
  16. String? focusedBorderColor,
  17. String? fillColor,
  18. String? activeColor,
  19. String? tileColor,
  20. String? selectedTileColor,
  21. String? shape,
  22. double? contentPadding,
  23. double? visualDensity,
  24. bool? isDense,
})

Implementation

FieldModel({
  required this.type,
  required this.key,
  this.label,
  this.placeholder,
  this.validators = const [],
  this.options,
  this.localization,
  this.visibleWhen,
  this.extra,
  // For TextField-style widgets
  this.prefixIcon,
  this.suffixIcon,
  this.border,
  this.borderRadius,
  this.filled,
  this.borderColor,
  this.focusedBorderColor,
  this.fillColor,
  // For selection controls (checkbox/radio/switch)
  this.activeColor,
  this.tileColor,
  this.selectedTileColor,
  this.shape,
  this.contentPadding,
  this.visualDensity,
  this.isDense,
});