copyWith method

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

Copies current FlBorderData to a new FlBorderData, and replaces provided values.

Implementation

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