copyWith method

PipPosition copyWith({
  1. Offset? offset,
  2. PipAnchor? anchor,
})

Creates a copy of this position with the given fields replaced

Implementation

PipPosition copyWith({
  Offset? offset,
  PipAnchor? anchor,
}) {
  return PipPosition(
    offset: offset ?? this.offset,
    anchor: anchor ?? this.anchor,
  );
}