paddingTop method

double paddingTop({
  1. bool isTopPadding = true,
  2. bool isRightPadding = true,
})

Implementation

double paddingTop({
  bool isTopPadding = true,
  bool isRightPadding = true,
}) {
  final EdgeInsets padding_data = mediaQueryData.padding;
  if (orientation == Orientation.portrait) {
    if (isTopPadding) {
      return padding_data.top;
    } else {
      return padding_data.bottom;
    }
  }
  if (isRightPadding) {
    return padding_data.right;
  } else {
    return padding_data.left;
  }
}