DynamicField constructor
const
DynamicField({
- required String key,
- required FieldType type,
- String? label,
- String? hint,
- Map<
String, dynamic> ? validation, - String? validator(
- dynamic
- dynamic initialValue,
- bool enabled = true,
- bool obscured = false,
- List<
DropdownOption> ? options, - Conditional? conditional,
- Map<
String, dynamic> ? visibleIf, - Map<
String, dynamic> ? extra, - Map<
String, dynamic> ? customData, - Map<
String, dynamic> ? decorationProps, - InputDecoration? decoration,
- TextStyle? style,
- Widget? prefix,
- Widget? suffix,
- Color? activeColor,
- Color? activeThumbColor,
- Color? checkColor,
- Color? inactiveTrackColor,
- Color? inactiveThumbColor,
Creates a new DynamicField instance.
Implementation
const DynamicField({
required this.key,
required this.type,
this.label,
this.hint,
this.validation,
this.validator,
this.initialValue,
this.enabled = true,
this.obscured = false,
this.options,
this.conditional,
this.visibleIf,
this.extra,
this.customData,
this.decorationProps,
this.decoration,
this.style,
this.prefix,
this.suffix,
this.activeColor,
this.activeThumbColor,
this.checkColor,
this.inactiveTrackColor,
this.inactiveThumbColor,
});