copyWith method

BorderSides copyWith({
  1. bool? top,
  2. bool? bottom,
  3. bool? left,
  4. bool? right,
})

Creates a copy with the specified values replaced.

Implementation

BorderSides copyWith({bool? top, bool? bottom, bool? left, bool? right}) {
  return BorderSides(
    top: top ?? this.top,
    bottom: bottom ?? this.bottom,
    left: left ?? this.left,
    right: right ?? this.right,
  );
}