copyWith method
FlutstrapFormGroup
copyWith({
- Key? key,
- List<
Widget> ? children, - String? label,
- String? helperText,
- String? validationMessage,
- bool? showValidation,
- bool? isValid,
- bool? required,
- FSFormGroupLayout? layout,
- FSFormGroupSize? size,
- CrossAxisAlignment? crossAxisAlignment,
- MainAxisAlignment? mainAxisAlignment,
- double? spacing,
- bool? showLabel,
- Widget? customLabel,
- FSFormGroupState? state,
Implementation
FlutstrapFormGroup copyWith({
Key? key,
List<Widget>? children,
String? label,
String? helperText,
String? validationMessage,
bool? showValidation,
bool? isValid,
bool? required,
FSFormGroupLayout? layout,
FSFormGroupSize? size,
CrossAxisAlignment? crossAxisAlignment,
MainAxisAlignment? mainAxisAlignment,
double? spacing,
bool? showLabel,
Widget? customLabel,
FSFormGroupState? state,
}) {
return FlutstrapFormGroup(
key: key ?? this.key,
children: children ?? this.children,
label: label ?? this.label,
helperText: helperText ?? this.helperText,
validationMessage: validationMessage ?? this.validationMessage,
showValidation: showValidation ?? this.showValidation,
isValid: isValid ?? this.isValid,
required: required ?? this.required,
layout: layout ?? this.layout,
size: size ?? this.size,
crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
spacing: spacing ?? this.spacing,
showLabel: showLabel ?? this.showLabel,
customLabel: customLabel ?? this.customLabel,
state: state ?? this.state,
);
}