copyWith method

FlutstrapTextArea copyWith({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. String? label,
  5. String? placeholder,
  6. String? helperText,
  7. bool? disabled,
  8. bool? readonly,
  9. bool? required,
  10. bool? showValidation,
  11. bool? isValid,
  12. String? validationMessage,
  13. int? maxLength,
  14. bool? showCharacterCounter,
  15. int? rows,
  16. bool? autoResize,
  17. FSTextAreaSize? size,
  18. FSTextAreaVariant? variant,
  19. ValueChanged<String>? onChanged,
  20. ValueChanged<String>? onSubmitted,
  21. VoidCallback? onEditingComplete,
  22. FocusNode? focusNode,
  23. TextInputAction? textInputAction,
  24. EdgeInsetsGeometry? padding,
  25. bool? showLabel,
  26. String? semanticLabel,
  27. Duration? resizeDelay,
})

Implementation

FlutstrapTextArea copyWith({
  Key? key,
  TextEditingController? controller,
  String? initialValue,
  String? label,
  String? placeholder,
  String? helperText,
  bool? disabled,
  bool? readonly,
  bool? required,
  bool? showValidation,
  bool? isValid,
  String? validationMessage,
  int? maxLength,
  bool? showCharacterCounter,
  int? rows,
  bool? autoResize,
  FSTextAreaSize? size,
  FSTextAreaVariant? variant,
  ValueChanged<String>? onChanged,
  ValueChanged<String>? onSubmitted,
  VoidCallback? onEditingComplete,
  FocusNode? focusNode,
  TextInputAction? textInputAction,
  EdgeInsetsGeometry? padding,
  bool? showLabel,
  String? semanticLabel,
  Duration? resizeDelay,
}) {
  return FlutstrapTextArea(
    key: key ?? this.key,
    controller: controller ?? this.controller,
    initialValue: initialValue ?? this.initialValue,
    label: label ?? this.label,
    placeholder: placeholder ?? this.placeholder,
    helperText: helperText ?? this.helperText,
    disabled: disabled ?? this.disabled,
    readonly: readonly ?? this.readonly,
    required: required ?? this.required,
    showValidation: showValidation ?? this.showValidation,
    isValid: isValid ?? this.isValid,
    validationMessage: validationMessage ?? this.validationMessage,
    maxLength: maxLength ?? this.maxLength,
    showCharacterCounter: showCharacterCounter ?? this.showCharacterCounter,
    rows: rows ?? this.rows,
    autoResize: autoResize ?? this.autoResize,
    size: size ?? this.size,
    variant: variant ?? this.variant,
    onChanged: onChanged ?? this.onChanged,
    onSubmitted: onSubmitted ?? this.onSubmitted,
    onEditingComplete: onEditingComplete ?? this.onEditingComplete,
    focusNode: focusNode ?? this.focusNode,
    textInputAction: textInputAction ?? this.textInputAction,
    padding: padding ?? this.padding,
    showLabel: showLabel ?? this.showLabel,
    semanticLabel: semanticLabel ?? this.semanticLabel,
    resizeDelay: resizeDelay ?? this.resizeDelay,
  );
}