copyWith method
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,
);
}