setRectForMultipleDevices method

RectProperties setRectForMultipleDevices(
  1. Map<DeviceType, Rect> rectMap
)
inherited

Implementation

RectProperties setRectForMultipleDevices(Map<DeviceType, Rect> rectMap) {
  RectProperties newRectProperties = getRectProperties;

  rectMap.forEach((deviceType, rect) {
    newRectProperties = newRectProperties.copyWith(
      rect: newRectProperties.rect
          .copyWithNewRectByDeviceType(deviceType, rect),
    );
  });

  return newRectProperties;
}