copyWith method

  1. @override
UnderlineInputBorder copyWith({
  1. BorderSide? borderSide,
  2. BorderRadius? borderRadius,
})
override

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

Implementation

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