copyWith method

RCKInputFieldConfig copyWith({
  1. double? maxHeight,
  2. Color? fillColor,
  3. InputBorder? border,
  4. InputBorder? focusedBorder,
  5. EdgeInsets? contentPadding,
  6. TextStyle? textStyle,
  7. String? hintText,
  8. TextStyle? hintStyle,
  9. Color? cursorColor,
  10. double? borderRadius,
  11. TextInputAction? textInputAction,
})

Implementation

RCKInputFieldConfig copyWith({
  double? maxHeight,
  Color? fillColor,
  InputBorder? border,
  InputBorder? focusedBorder,
  EdgeInsets? contentPadding,
  TextStyle? textStyle,
  String? hintText,
  TextStyle? hintStyle,
  Color? cursorColor,
  double? borderRadius,
  TextInputAction? textInputAction,
}) {
  return RCKInputFieldConfig(
    maxHeight: maxHeight ?? this.maxHeight,
    fillColor: fillColor ?? this.fillColor,
    border: border ?? this.border,
    focusedBorder: focusedBorder ?? this.focusedBorder,
    contentPadding: contentPadding ?? this.contentPadding,
    textStyle: textStyle ?? this.textStyle,
    hintText: hintText ?? this.hintText,
    hintStyle: hintStyle ?? this.hintStyle,
    cursorColor: cursorColor ?? this.cursorColor,
    borderRadius: borderRadius ?? this.borderRadius,
    textInputAction: textInputAction ?? this.textInputAction,
  );
}