deviceHeight property

double get deviceHeight

deviceHeight

represent the device height, check if current display in landscape mode then return its width as total height instead of its size height

Implementation

double get deviceHeight {
  final Size size = mediaQueryData.size;
  if (DeviceService.isMobile) {
    return mediaQueryData.orientation == Orientation.landscape
        ? size.width
        : size.height;
  }
  return size.height;
}