copyWith method

FlutstrapFormGroup copyWith({
  1. Key? key,
  2. List<Widget>? children,
  3. String? label,
  4. String? helperText,
  5. String? validationMessage,
  6. bool? showValidation,
  7. bool? isValid,
  8. bool? required,
  9. FSFormGroupLayout? layout,
  10. FSFormGroupSize? size,
  11. CrossAxisAlignment? crossAxisAlignment,
  12. MainAxisAlignment? mainAxisAlignment,
  13. double? spacing,
  14. bool? showLabel,
  15. Widget? customLabel,
  16. 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,
  );
}