copyWith method

  1. @useResult
FTextFieldStyle copyWith({
  1. Brightness? keyboardAppearance,
  2. Color? cursorColor,
  3. Color? fillColor,
  4. bool? filled,
  5. EdgeInsetsGeometry? contentPadding,
  6. EdgeInsetsGeometry? clearButtonPadding,
  7. EdgeInsetsGeometry? obscureButtonPadding,
  8. EdgeInsets? scrollPadding,
  9. FButtonStyle clearButtonStyle(
    1. FButtonStyle style
    )?,
  10. FButtonStyle obscureButtonStyle(
    1. FButtonStyle style
    )?,
  11. FWidgetStateMap<TextStyle>? contentTextStyle,
  12. FWidgetStateMap<TextStyle>? hintTextStyle,
  13. FWidgetStateMap<TextStyle>? counterTextStyle,
  14. FWidgetStateMap<InputBorder>? border,
  15. EdgeInsetsGeometry? labelPadding,
  16. EdgeInsetsGeometry? descriptionPadding,
  17. EdgeInsetsGeometry? errorPadding,
  18. EdgeInsetsGeometry? childPadding,
  19. FWidgetStateMap<TextStyle>? labelTextStyle,
  20. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  21. TextStyle? errorTextStyle,
})

Returns a copy of this FTextFieldStyle with the given properties replaced.

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FTextFieldStyle copyWith({
  Brightness? keyboardAppearance,
  Color? cursorColor,
  Color? fillColor,
  bool? filled,
  EdgeInsetsGeometry? contentPadding,
  EdgeInsetsGeometry? clearButtonPadding,
  EdgeInsetsGeometry? obscureButtonPadding,
  EdgeInsets? scrollPadding,
  FButtonStyle Function(FButtonStyle style)? clearButtonStyle,
  FButtonStyle Function(FButtonStyle style)? obscureButtonStyle,
  FWidgetStateMap<TextStyle>? contentTextStyle,
  FWidgetStateMap<TextStyle>? hintTextStyle,
  FWidgetStateMap<TextStyle>? counterTextStyle,
  FWidgetStateMap<InputBorder>? border,
  EdgeInsetsGeometry? labelPadding,
  EdgeInsetsGeometry? descriptionPadding,
  EdgeInsetsGeometry? errorPadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<TextStyle>? labelTextStyle,
  FWidgetStateMap<TextStyle>? descriptionTextStyle,
  TextStyle? errorTextStyle,
}) => FTextFieldStyle(
  keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
  cursorColor: cursorColor ?? this.cursorColor,
  fillColor: fillColor ?? this.fillColor,
  filled: filled ?? this.filled,
  contentPadding: contentPadding ?? this.contentPadding,
  clearButtonPadding: clearButtonPadding ?? this.clearButtonPadding,
  obscureButtonPadding: obscureButtonPadding ?? this.obscureButtonPadding,
  scrollPadding: scrollPadding ?? this.scrollPadding,
  clearButtonStyle: clearButtonStyle != null ? clearButtonStyle(this.clearButtonStyle) : this.clearButtonStyle,
  obscureButtonStyle: obscureButtonStyle != null
      ? obscureButtonStyle(this.obscureButtonStyle)
      : this.obscureButtonStyle,
  contentTextStyle: contentTextStyle ?? this.contentTextStyle,
  hintTextStyle: hintTextStyle ?? this.hintTextStyle,
  counterTextStyle: counterTextStyle ?? this.counterTextStyle,
  border: border ?? this.border,
  labelPadding: labelPadding ?? this.labelPadding,
  descriptionPadding: descriptionPadding ?? this.descriptionPadding,
  errorPadding: errorPadding ?? this.errorPadding,
  childPadding: childPadding ?? this.childPadding,
  labelTextStyle: labelTextStyle ?? this.labelTextStyle,
  descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
  errorTextStyle: errorTextStyle ?? this.errorTextStyle,
);