hSafe property

double get hSafe

Height percentage excluding safe area (notches, status bar, etc.) Example: 50.hSafe = 50% of usable screen height

Implementation

double get hSafe {
  final config = ResponsiveMasterConfig.instance;
  if (!config.enableCaching) {
    return this * DeviceData.heightSafe / 100;
  }

  return ResponsiveCache.getOrCompute(
    'hSafe_$this',
    () => this * DeviceData.heightSafe / 100,
    width: DeviceData.width,
    height: DeviceData.height,
    orientation: DeviceData.orientation.toString(),
  );
}