copyWith method
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,
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,
);
}