DynamicField constructor

const DynamicField({
  1. required String key,
  2. required FieldType type,
  3. String? label,
  4. String? hint,
  5. Map<String, dynamic>? validation,
  6. String? validator(
    1. dynamic
    )?,
  7. dynamic initialValue,
  8. bool enabled = true,
  9. bool obscured = false,
  10. List<DropdownOption>? options,
  11. Conditional? conditional,
  12. Map<String, dynamic>? visibleIf,
  13. Map<String, dynamic>? extra,
  14. Map<String, dynamic>? customData,
  15. FieldDecorationOverride? decorationOverride,
  16. InputDecoration? decoration,
  17. TextStyle? style,
  18. Widget? prefix,
  19. Widget? suffix,
  20. Color? activeColor,
  21. Color? activeThumbColor,
  22. Color? checkColor,
  23. Color? inactiveTrackColor,
  24. 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.decorationOverride,
  this.decoration,
  this.style,
  this.prefix,
  this.suffix,
  this.activeColor,
  this.activeThumbColor,
  this.checkColor,
  this.inactiveTrackColor,
  this.inactiveThumbColor,
});