copyWith method

ZeroTextfieldStyle copyWith({
  1. InputDecorationType? inputDecorationType,
  2. ZeroTextfieldSize? textfieldSize,
  3. bool? enabled,
  4. bool? error,
  5. Color? focusedBorderColor,
  6. Color? focusedColor,
  7. Color? fillColor,
})

Implementation

ZeroTextfieldStyle copyWith(
    {InputDecorationType? inputDecorationType,
    ZeroTextfieldSize? textfieldSize,
    bool? enabled,
    bool? error,
    Color? focusedBorderColor,
    Color? focusedColor,
    Color? fillColor}) {
  return ZeroTextfieldStyle(
      inputDecorationType: inputDecorationType ?? this.inputDecorationType,
      textfieldSize: textfieldSize ?? this.textfieldSize,
      enabled: enabled ?? this.enabled,
      error: error ?? this.error,
      focusedBorderColor: focusedBorderColor ?? this.focusedBorderColor,
      focusedColor: focusedColor ?? this.focusedColor,
      fillColor: fillColor ?? this.fillColor);
}