copyWith method

CTextFormFieldControl copyWith({
  1. String? text,
  2. bool? enable,
  3. bool? obscureText,
  4. String? error,
})

Implementation

CTextFormFieldControl copyWith({
  String? text,
  bool? enable,
  bool? obscureText,
  String? error,
}) {
  return CTextFormFieldControl(
    text: text ?? this.text,
    enable: enable ?? this.enable,
    obscureText: obscureText ?? this.obscureText,
    error: error,
  );
}