copyWith method

  1. @useResult
FTextFieldStyle copyWith({
  1. Brightness? keyboardAppearance,
  2. Color? cursorColor,
  3. EdgeInsets? contentPadding,
  4. EdgeInsets? scrollPadding,
  5. FTextFieldStateStyle? enabledStyle,
  6. FTextFieldStateStyle? disabledStyle,
  7. FTextFieldErrorStyle? errorStyle,
})

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

Implementation

@useResult
FTextFieldStyle copyWith({
  Brightness? keyboardAppearance,
  Color? cursorColor,
  EdgeInsets? contentPadding,
  EdgeInsets? scrollPadding,
  FTextFieldStateStyle? enabledStyle,
  FTextFieldStateStyle? disabledStyle,
  FTextFieldErrorStyle? errorStyle,
}) =>
    FTextFieldStyle(
      keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
      cursorColor: cursorColor ?? this.cursorColor,
      contentPadding: contentPadding ?? this.contentPadding,
      scrollPadding: scrollPadding ?? this.scrollPadding,
      enabledStyle: enabledStyle ?? this.enabledStyle,
      disabledStyle: disabledStyle ?? this.disabledStyle,
      errorStyle: errorStyle ?? this.errorStyle,
    );