getSize method

Size getSize(
  1. DeviceOrientation orientation
)

Implementation

Size getSize(DeviceOrientation orientation) {
  if (this == DevicePreset.none) return Size.zero;

  return orientation == DeviceOrientation.portrait
      ? Size(width, height)
      : Size(height, width);
}