FormItemCheckbox constructor

FormItemCheckbox({
  1. TextEditingController? controller,
  2. Widget? leading,
  3. bool dense = false,
  4. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 4.5),
  5. EdgeInsetsGeometry margin = const EdgeInsets.symmetric(vertical: 10),
  6. FormItemCheckboxType type = FormItemCheckboxType.form,
  7. void onChanged(
    1. bool? value
    )?,
  8. Color? backgroundColor,
  9. Color? borderColor,
  10. Color? color,
  11. Color? activeColor,
  12. Color? checkColor,
  13. String? hintText,
  14. String? errorText,
  15. String? labelText,
  16. Key? key,
  17. void onSaved(
    1. bool? value
    )?,
  18. String? validator(
    1. bool? value
    )?,
  19. bool initialValue = false,
  20. bool enabled = true,
})

Implementation

FormItemCheckbox(
    {this.controller,
    this.leading,
    this.dense = false,
    this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 4.5),
    this.margin = const EdgeInsets.symmetric(vertical: 10),
    this.type = FormItemCheckboxType.form,
    this.onChanged,
    this.backgroundColor,
    this.borderColor,
    this.color,
    this.activeColor,
    this.checkColor,
    this.hintText,
    this.errorText,
    this.labelText,
    Key? key,
    void Function(bool? value)? onSaved,
    String? Function(bool? value)? validator,
    bool initialValue = false,
    bool enabled = true})
    : super(
          key: key,
          builder: (state) {
            return const Empty();
          },
          onSaved: onSaved,
          validator: validator,
          initialValue: initialValue,
          enabled: enabled);