copyWith method
TTextFieldTheme
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,
override
Implementation
@override
TTextFieldTheme 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,
}) {
return TTextFieldTheme(
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,
inputFormatters: inputFormatters ?? this.inputFormatters,
keyboardType: keyboardType ?? this.keyboardType,
textCapitalization: textCapitalization ?? this.textCapitalization,
autocorrect: autocorrect ?? this.autocorrect,
enableSuggestions: enableSuggestions ?? this.enableSuggestions,
maxLength: maxLength ?? this.maxLength,
maxLengthEnforcement: maxLengthEnforcement ?? this.maxLengthEnforcement,
textInputAction: textInputAction ?? this.textInputAction,
obscureText: obscureText ?? this.obscureText,
);
}