w property

double get w

Width percentage (0-100) Example: 50.w = 50% of screen width

Implementation

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

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