copyWith method

  1. @override
  2. @useResult
FTextFieldStateStyle copyWith({
  1. TextStyle? labelTextStyle,
  2. TextStyle? contentTextStyle,
  3. TextStyle? hintTextStyle,
  4. TextStyle? descriptionTextStyle,
  5. FTextFieldBorderStyle? focusedStyle,
  6. FTextFieldBorderStyle? unfocusedStyle,
})
override

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

Implementation

@override
@useResult
FTextFieldStateStyle copyWith({
  TextStyle? labelTextStyle,
  TextStyle? contentTextStyle,
  TextStyle? hintTextStyle,
  TextStyle? descriptionTextStyle,
  FTextFieldBorderStyle? focusedStyle,
  FTextFieldBorderStyle? unfocusedStyle,
}) =>
    FTextFieldStateStyle(
      labelTextStyle: labelTextStyle ?? this.labelTextStyle,
      contentTextStyle: contentTextStyle ?? this.contentTextStyle,
      hintTextStyle: hintTextStyle ?? this.hintTextStyle,
      descriptionTextStyle: descriptionTextStyle ?? this.descriptionTextStyle,
      focusedStyle: focusedStyle ?? this.focusedStyle,
      unfocusedStyle: unfocusedStyle ?? this.unfocusedStyle,
    );