wSafe property

double get wSafe

Width percentage excluding safe area Example: 50.wSafe = 50% of usable screen width

Implementation

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

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