getSize method
Implementation
Size getSize(DeviceOrientation orientation) {
if (this == DevicePreset.none) return Size.zero;
return orientation == DeviceOrientation.portrait
? Size(width, height)
: Size(height, width);
}
Size getSize(DeviceOrientation orientation) {
if (this == DevicePreset.none) return Size.zero;
return orientation == DeviceOrientation.portrait
? Size(width, height)
: Size(height, width);
}