copyWith method

  1. @override
TFilePickerTheme copyWith({
  1. TInputSize? size,
  2. WidgetStateProperty<Color?>? color,
  3. WidgetStateProperty<Color?>? backgroundColor,
  4. WidgetStateProperty<Color?>? borderColor,
  5. Widget? preWidget,
  6. Widget? postWidget,
  7. double? height,
  8. EdgeInsets? padding,
  9. double? fontSize,
  10. double? borderRadius,
  11. WidgetStateProperty<TextStyle?>? labelStyle,
  12. WidgetStateProperty<TextStyle?>? helperTextStyle,
  13. WidgetStateProperty<TextStyle?>? errorTextStyle,
  14. WidgetStateProperty<TextStyle?>? tagStyle,
  15. LabelBuilder? labelBuilder,
  16. HelperTextBuilder? helperTextBuilder,
  17. ErrorsBuilder? errorsBuilder,
  18. BorderBuilder? borderBuilder,
  19. BoxShadowBuilder? boxShadowBuilder,
  20. DecorationBuilder? decorationBuilder,
  21. List<TextInputFormatter>? inputFormatters,
  22. TextInputType? keyboardType,
  23. TextCapitalization? textCapitalization,
  24. bool? autocorrect,
  25. bool? enableSuggestions,
  26. int? maxLength,
  27. MaxLengthEnforcement? maxLengthEnforcement,
  28. TextInputAction? textInputAction,
  29. bool? obscureText,
  30. double? tagSpacing,
  31. double? tagRunSpacing,
  32. EdgeInsets? tagPadding,
  33. double? tagBorderRadius,
  34. Color? tagBackgroundColor,
  35. Color? tagTextColor,
  36. double? tagFontSize,
  37. FontWeight? tagFontWeight,
  38. Color? tagIconColor,
  39. double? tagIconSize,
  40. double? minInputWidth,
  41. double? maxInputWidth,
  42. Widget tagBuilder(
    1. TFile file,
    2. VoidCallback onRemove
    )?,
})
override

Implementation

@override
TFilePickerTheme copyWith({
  TInputSize? size,
  WidgetStateProperty<Color?>? color,
  WidgetStateProperty<Color?>? backgroundColor,
  WidgetStateProperty<Color?>? borderColor,
  Widget? preWidget,
  Widget? postWidget,
  double? height,
  EdgeInsets? padding,
  double? fontSize,
  double? borderRadius,
  WidgetStateProperty<TextStyle?>? labelStyle,
  WidgetStateProperty<TextStyle?>? helperTextStyle,
  WidgetStateProperty<TextStyle?>? errorTextStyle,
  WidgetStateProperty<TextStyle?>? tagStyle,
  LabelBuilder? labelBuilder,
  HelperTextBuilder? helperTextBuilder,
  ErrorsBuilder? errorsBuilder,
  BorderBuilder? borderBuilder,
  BoxShadowBuilder? boxShadowBuilder,
  DecorationBuilder? decorationBuilder,
  List<TextInputFormatter>? inputFormatters,
  TextInputType? keyboardType,
  TextCapitalization? textCapitalization,
  bool? autocorrect,
  bool? enableSuggestions,
  int? maxLength,
  MaxLengthEnforcement? maxLengthEnforcement,
  TextInputAction? textInputAction,
  bool? obscureText,

  // Tag-specific properties
  double? tagSpacing,
  double? tagRunSpacing,
  EdgeInsets? tagPadding,
  double? tagBorderRadius,
  Color? tagBackgroundColor,
  Color? tagTextColor,
  double? tagFontSize,
  FontWeight? tagFontWeight,
  Color? tagIconColor,
  double? tagIconSize,
  double? minInputWidth,
  double? maxInputWidth,
  Widget Function(TFile file, VoidCallback onRemove)? tagBuilder,
}) {
  return TFilePickerTheme(
    size: size ?? this.size,
    color: color ?? this.color,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    preWidget: preWidget ?? this.preWidget,
    postWidget: postWidget ?? this.postWidget,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    fontSize: fontSize ?? this.fontSize,
    borderRadius: borderRadius ?? this.borderRadius,
    labelStyle: labelStyle ?? this.labelStyle,
    helperTextStyle: helperTextStyle ?? this.helperTextStyle,
    errorTextStyle: errorTextStyle ?? this.errorTextStyle,
    tagStyle: tagStyle ?? this.tagStyle,
    labelBuilder: labelBuilder ?? this.labelBuilder,
    helperTextBuilder: helperTextBuilder ?? this.helperTextBuilder,
    errorsBuilder: errorsBuilder ?? this.errorsBuilder,
    borderBuilder: borderBuilder ?? this.borderBuilder,
    boxShadowBuilder: boxShadowBuilder ?? this.boxShadowBuilder,
    decorationBuilder: decorationBuilder ?? this.decorationBuilder,

    // Tag-specific properties
    tagSpacing: tagSpacing ?? this.tagSpacing,
    tagRunSpacing: tagRunSpacing ?? this.tagRunSpacing,
    tagPadding: tagPadding ?? this.tagPadding,
    tagBorderRadius: tagBorderRadius ?? this.tagBorderRadius,
    tagBackgroundColor: tagBackgroundColor ?? this.tagBackgroundColor,
    tagTextColor: tagTextColor ?? this.tagTextColor,
    tagFontSize: tagFontSize ?? this.tagFontSize,
    tagFontWeight: tagFontWeight ?? this.tagFontWeight,
    tagIconColor: tagIconColor ?? this.tagIconColor,
    tagIconSize: tagIconSize ?? this.tagIconSize,
    minInputWidth: minInputWidth ?? this.minInputWidth,
    maxInputWidth: maxInputWidth ?? this.maxInputWidth,
    tagBuilder: tagBuilder ?? this.tagBuilder,
  );
}