copyWith method

ResponsiveRect copyWith({
  1. Rect? rectPhone,
  2. Rect? rectTablet,
  3. Rect? rectLaptop,
  4. Rect? rectDesktop,
})

Implementation

ResponsiveRect copyWith({
  Rect? rectPhone,
  Rect? rectTablet,
  Rect? rectLaptop,
  Rect? rectDesktop,
}) {
  return ResponsiveRect(
    rectPhone: rectPhone ?? this.rectPhone,
    rectTablet: rectTablet ?? this.rectTablet,
    rectLaptop: rectLaptop ?? this.rectLaptop,
    rectDesktop: rectDesktop ?? this.rectDesktop,
  );
}