copyWith method

FloatingOverlayData copyWith({
  1. Size? childSize,
  2. double? scale,
  3. Offset? position,
})

Implementation

FloatingOverlayData copyWith({
  Size? childSize,
  double? scale,
  Offset? position,
}) {
  return FloatingOverlayData(
    childSize: (childSize != Size.zero) && (childSize != null)
        ? childSize
        : this.childSize,
    position: position ?? this.position,
    scale: scale ?? this.scale,
  );
}