ah property

EdgeInsets get ah

Scales all values by the height ratio.

Implementation

EdgeInsets get ah {
  final context = AdaptiveContext.maybeContext;
  if (context == null) return this;
  final data = AdaptiveData.maybeOf(context);
  if (data == null) return this;
  final info = data.getDeviceInfo(context);
  return EdgeInsets.only(
    left: info.setHeight(left),
    top: info.setHeight(top),
    right: info.setHeight(right),
    bottom: info.setHeight(bottom),
  );
}