copyWith method

AdeptTextFieldTheme copyWith({
  1. InputDecoration? inputDecoration,
  2. double? height,
  3. TextStyle? labelTextStyle,
  4. TextStyle? hintTextStyle,
  5. TextStyle? valueTextStyle,
  6. EdgeInsets? labelPadding,
  7. EdgeInsets? fieldPadding,
})

Copy constructor with new instance

Implementation

AdeptTextFieldTheme copyWith({
  /// You can provide inputDecoration to appear inside the text field.
  InputDecoration? inputDecoration,

  ////
  double? height,

  // From base class: TextThemeMdl
  TextStyle? labelTextStyle,
  TextStyle? hintTextStyle,
  TextStyle? valueTextStyle,
  EdgeInsets? labelPadding,
  EdgeInsets? fieldPadding,
}) {
  return AdeptTextFieldTheme(
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    hintTextStyle: hintTextStyle ?? this.hintTextStyle,
    valueTextStyle: valueTextStyle ?? this.valueTextStyle,
    labelPadding: labelPadding ?? this.labelPadding,
    fieldPadding: fieldPadding ?? this.fieldPadding,
    height: height ?? this.height,
    inputDecoration: inputDecoration ?? this.inputDecoration,
  );
}