FieldModel constructor
FieldModel({
- required String type,
- required String key,
- dynamic label,
- dynamic placeholder,
- List<
String> validators = const [], - List<
Map< ? options,String, dynamic> > - Map<
String, dynamic> ? localization, - Map<
String, dynamic> ? visibleWhen, - Map<
String, dynamic> ? extra, - String? prefixIcon,
- String? suffixIcon,
- String? border,
- int? borderRadius,
- bool? filled,
- String? borderColor,
- String? focusedBorderColor,
- String? fillColor,
- String? activeColor,
- String? tileColor,
- String? selectedTileColor,
- String? shape,
- double? contentPadding,
- double? visualDensity,
- 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,
});