copyWith method

  1. @override
InputBorder copyWith({
  1. BorderSide? borderSide,
  2. InputBorder? child,
  3. List<BoxShadow>? shadow,
  4. List<BoxShadow>? innerShadow,
  5. bool? isOutline,
  6. Gradient? backgroundGradient,
  7. GradientBorderSide? borderGradient,
  8. bool? clipInner,
})
override

Creates a copy of this input border with the specified borderSide.

Implementation

@override
InputBorder copyWith({
  BorderSide? borderSide,
  InputBorder? child,
  List<BoxShadow>? shadow,
  List<BoxShadow>? innerShadow,
  bool? isOutline,
  Gradient? backgroundGradient,
  GradientBorderSide? borderGradient,
  bool? clipInner,
}) {
  return DecoratedInputBorder(
    child: (child ?? this.child).copyWith(borderSide: borderSide),
    shadow: shadow ?? this.shadow,
    innerShadow: innerShadow ?? this.innerShadow,
    isOutline: isOutline ?? this.isOutline,
    backgroundGradient: backgroundGradient ?? this.backgroundGradient,
    borderGradient: borderGradient ?? this.borderGradient,
    clipInner: clipInner ?? this.clipInner,
  );
}