copyWith method

Rectangle copyWith({
  1. ReferencePoint? low,
  2. ReferencePoint? high,
})

Implementation

Rectangle copyWith({ReferencePoint? low, ReferencePoint? high}) {
  return Rectangle(low: low ?? this.low, high: high ?? this.high);
}