copyWith method

  1. @override
OutlineInputBorder copyWith({
  1. BorderSide? borderSide,
  2. BorderRadius? borderRadius,
  3. double? gapPadding,
})
override

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

Implementation

@override
OutlineInputBorder copyWith({
  BorderSide? borderSide,
  BorderRadius? borderRadius,
  double? gapPadding,
}) {
  return OutlineInputBorder(
    borderSide: borderSide ?? this.borderSide,
    borderRadius: borderRadius ?? this.borderRadius,
    gapPadding: gapPadding ?? this.gapPadding,
  );
}