copyWith method

FlutstrapCheckbox copyWith({
  1. Key? key,
  2. bool? value,
  3. ValueChanged<bool?>? onChanged,
  4. FSCheckboxVariant? variant,
  5. FSCheckboxSize? size,
  6. String? label,
  7. Widget? customLabel,
  8. bool? disabled,
  9. bool? inline,
  10. String? semanticLabel,
  11. bool? showValidation,
  12. bool? isValid,
  13. String? validationMessage,
  14. bool? tristate,
  15. Color? activeColor,
  16. Color? checkColor,
  17. VisualDensity? visualDensity,
  18. EdgeInsetsGeometry? padding,
})

Implementation

FlutstrapCheckbox copyWith({
  Key? key,
  bool? value,
  ValueChanged<bool?>? onChanged,
  FSCheckboxVariant? variant,
  FSCheckboxSize? size,
  String? label,
  Widget? customLabel,
  bool? disabled,
  bool? inline,
  String? semanticLabel,
  bool? showValidation,
  bool? isValid,
  String? validationMessage,
  bool? tristate,
  Color? activeColor,
  Color? checkColor,
  VisualDensity? visualDensity,
  EdgeInsetsGeometry? padding,
}) {
  return FlutstrapCheckbox(
    key: key ?? this.key,
    value: value ?? this.value,
    onChanged: onChanged ?? this.onChanged,
    variant: variant ?? this.variant,
    size: size ?? this.size,
    label: label ?? this.label,
    customLabel: customLabel ?? this.customLabel,
    disabled: disabled ?? this.disabled,
    inline: inline ?? this.inline,
    semanticLabel: semanticLabel ?? this.semanticLabel,
    showValidation: showValidation ?? this.showValidation,
    isValid: isValid ?? this.isValid,
    validationMessage: validationMessage ?? this.validationMessage,
    tristate: tristate ?? this.tristate,
    activeColor: activeColor ?? this.activeColor,
    checkColor: checkColor ?? this.checkColor,
    visualDensity: visualDensity ?? this.visualDensity,
    padding: padding ?? this.padding,
  );
}