copyWith method

  1. @useResult
FTextFieldStyle copyWith({
  1. Brightness? keyboardAppearance,
  2. Color? cursorColor,
  3. EdgeInsets? contentPadding,
  4. EdgeInsets? scrollPadding,
  5. FLabelLayoutStyle? labelLayoutStyle,
  6. FTextFieldStateStyle? enabledStyle,
  7. FTextFieldStateStyle? disabledStyle,
  8. 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,
  FLabelLayoutStyle? labelLayoutStyle,
  FTextFieldStateStyle? enabledStyle,
  FTextFieldStateStyle? disabledStyle,
  FTextFieldErrorStyle? errorStyle,
}) =>
    FTextFieldStyle(
      keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
      cursorColor: cursorColor ?? this.cursorColor,
      contentPadding: contentPadding ?? this.contentPadding,
      scrollPadding: scrollPadding ?? this.scrollPadding,
      labelLayoutStyle: labelLayoutStyle ?? this.labelLayoutStyle,
      enabledStyle: enabledStyle ?? this.enabledStyle,
      disabledStyle: disabledStyle ?? this.disabledStyle,
      errorStyle: errorStyle ?? this.errorStyle,
    );