directionExtent method
Gets the extent of the inset facing direction
.
Implementation
double directionExtent(AxisDirection direction) {
if (direction == AxisDirection.up) return top;
else if (direction == AxisDirection.right) return right;
else if (direction == AxisDirection.down) return bottom;
else return left;
}