copyWith method
InputBorder
copyWith({
- BorderSide? borderSide,
- InputBorder? child,
- List<
BoxShadow> ? shadow, - List<
BoxShadow> ? innerShadow, - bool? isOutline,
- Gradient? backgroundGradient,
- GradientBorderSide? borderGradient,
- 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,
);
}