copyWith method

  1. @override
OutlineInputBorder copyWith ({BorderSide borderSide, BorderRadius borderRadius, 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,
  );
}