copyWithResettingRect method

ResponsiveRect copyWithResettingRect(
  1. DeviceType deviceType
)

Implementation

ResponsiveRect copyWithResettingRect(DeviceType deviceType) {
  if (deviceType == DeviceType.desktop) {
    return setDesktopNull();
  }
  if (deviceType == DeviceType.tablet) {
    return setTabletNull();
  }
  if (deviceType == DeviceType.laptop) {
    return setLaptopNull();
  }
  return this;
}