SparkFormItem constructor

const SparkFormItem({
  1. Key? key,
  2. required String fieldName,
  3. required Widget child,
  4. Axis? direction,
  5. WidgetThemeBuilder? labelBuilder,
  6. String? label,
  7. bool? isRequired,
  8. List<SparkValidator>? rules,
  9. double? labelWidth,
  10. EdgeInsets? labelPadding,
  11. FocusDecoration? decoration,
  12. bool? readOnly = false,
  13. EdgeInsets? padding,
  14. EdgeInsets? margin,
  15. TextStyle? labelStyle,
  16. bool? crossCenter,
  17. TextStyle? errorStyle,
  18. EdgeInsets? errorContentPadding,
  19. Widget? labelSuffix,
  20. Widget? appendWidget,
  21. AppendChildBuilder? appendWidgetBuilder,
})

Implementation

const SparkFormItem({
  Key? key,
  required this.fieldName,
  required this.child,
  this.direction,
  this.labelBuilder,
  this.label,
  this.isRequired,
  this.rules,
  this.labelWidth,
  this.labelPadding,
  this.decoration,
  this.readOnly = false,
  this.padding,
  this.margin,
  this.labelStyle,
  this.crossCenter,
  this.errorStyle,
  this.errorContentPadding,
  this.labelSuffix,
  this.appendWidget,
  this.appendWidgetBuilder,
}) : super(key: key);