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. EdgeInsets? scrollPadding,
  8. FButtonStyle? clearButtonStyle,
  9. FWidgetStateMap<TextStyle>? contentTextStyle,
  10. FWidgetStateMap<TextStyle>? hintTextStyle,
  11. FWidgetStateMap<TextStyle>? counterTextStyle,
  12. FWidgetStateMap<InputBorder>? border,
  13. EdgeInsetsGeometry? labelPadding,
  14. EdgeInsetsGeometry? descriptionPadding,
  15. EdgeInsetsGeometry? errorPadding,
  16. EdgeInsetsGeometry? childPadding,
  17. FWidgetStateMap<TextStyle>? labelTextStyle,
  18. FWidgetStateMap<TextStyle>? descriptionTextStyle,
  19. TextStyle? errorTextStyle,
})
inherited

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

@useResult
FTextFieldStyle copyWith({
  Brightness? keyboardAppearance,
  Color? cursorColor,
  Color? fillColor,
  bool? filled,
  EdgeInsetsGeometry? contentPadding,
  EdgeInsetsGeometry? clearButtonPadding,
  EdgeInsets? scrollPadding,
  FButtonStyle? clearButtonStyle,
  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,
  scrollPadding: scrollPadding ?? this.scrollPadding,
  clearButtonStyle: clearButtonStyle ?? this.clearButtonStyle,
  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,
);