getPaddingFromDirection function
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;
}
}