getPaddingFromDirection function

double getPaddingFromDirection(
  1. EdgeInsets padding,
  2. Direction direction
)

Implementation

double getPaddingFromDirection(EdgeInsets padding, Direction direction) {
  switch (direction) {
    case Direction.top:
      return padding.top;
    case Direction.bottom:
      return padding.bottom;
    case Direction.left:
      return padding.left;
    case Direction.right:
      return padding.right;
  }
}